promptdojo_

Functions and the missing return — step 7 of 9

Cursor wrote a function that prints the doubled number instead of returning it. The caller on line 5 needs the value to do math with. Right now result is None and line 6 crashes with a TypeError.

Fix the function so the script prints doubled plus one: 15.

The break is on line 2 — but read the whole snippet first.

full-screen editor opens — close anytime to keep reading.