skip to content
promptdojo
_
[ save your spot ]
[ follow on x ]
Functions and the missing return — step 2 of 9
ch 02 · functions
2/9
promptdojo
_
›
phase 01 · foundations
›
ch 02 · functions
lesson 1 of 3 · functions and the missing return
step 2 of 9 in this lesson
Cursor wrote this and it prints something surprising. What does
result
end up being?
1
`5`
2
`None`
3
`0`
4
It crashes with an error
check
Show hint 1
ch 02 · functions
2/9
promptdojo
_
›
phase 01 · foundations
›
ch 02 · functions
lesson 1 of 3 · functions and the missing return
step 2 of 9 in this lesson
Cursor wrote this and it prints something surprising. What does
result
end up being?
1
`5`
2
`None`
3
`0`
4
It crashes with an error
check
Show hint 1
park a thought