Ship it?
Real-World Tasks
Everyday jobs like grading, paging, parsing and validating. AI code can be off at a boundary, hide an error behind a default, or invent a method.
Read what the AI wrote
Spot the broken line
Ship it, or send it back
Some of the code is fine.
0 of 10 reviewed
1. Grade from a score
EasyYou asked
Write grade(score): "A" for 90 and above, "B" for 80 to 89, "C" for 70 to 79, "D" for 60 to 69, and "F" for anything lower.
AI assistant
This checks the grades from the top down and returns the first match.
1def grade(score):
2 if score > 90:
3 return "A"
4 if score > 80:
5 return "B"
6 if score > 70:
7 return "C"
8 if score > 60:
9 return "D"
10 return "F"