[ login to save ]
[ follow @TFisPython on x ]
conditionals — where ai silently bugs
2 / 8
conditionals and the truthiness traps
Cursor wrote
if x:
and the branch did not fire. Which value of
x
would
skip
the
if
block?
1
`x = "hello"`
2
`x = [1]`
3
`x = []`
4
`x = -5`
Check
Show hint
⌘↵ runs the editor.
continue →
main.py
Booting Python…
run
⌘↵
Output
[promptdojo:~]$
_
Show prompt
park a thought