http and apis — making the call6 / 9
get, status, json — the call ai makes 100 times a day
Claude wrote this and the success check is wrong. It uses = (assignment)
instead of == (comparison), so the line tries to assign to status and
raises a SyntaxError. Fix line 4 so the script prints ok.
The break is on line 4 — but read the whole snippet first.
⌘↵ runs the editor.
Booting Python…
Output
[promptdojo:~]$ _