variables — what ai reaches for first7 / 9
print, repr, and the f-string
Claude generated this snippet and it crashes with a SyntaxError.
The variable name is right, but one of the braces is wrong. Fix the
f-string so it prints exactly score: 42.
Expected output:
score: 42
The break is on line 2 — but read the whole snippet first.
⌘↵ runs the editor.
Booting Python…
Output
[promptdojo:~]$ _