skip to content
promptdojo
_
[ save your spot ]
[ follow on x ]
Decisions — if/elif chains — step 2 of 8
ch 01 · read the script
2/8
promptdojo
_
›
phase 01 · read the code ai writes
›
ch 01 · read the script
lesson 3 of 3 · decisions — if/elif chains
step 2 of 8 in this lesson
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
ch 01 · read the script
2/8
promptdojo
_
›
phase 01 · read the code ai writes
›
ch 01 · read the script
lesson 3 of 3 · decisions — if/elif chains
step 2 of 8 in this lesson
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
park a thought