skip to content
promptdojo
_
[ save your spot ]
[ follow on x ]
Functions and the hallucinated return — 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 2 of 3 · functions and the hallucinated return
step 2 of 8 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 01 · read the script
2/8
promptdojo
_
›
phase 01 · read the code ai writes
›
ch 01 · read the script
lesson 2 of 3 · functions and the hallucinated return
step 2 of 8 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