Skip to Content
Python Intermediate: Write Code You Won't Be Embarrassed to Share
Intermediate
0 likes
Courses
Python Intermediate: Write Code You Won't Be Embarrassed to Share

Check Yourself: Prove It Works Before Someone Else Finds Out

Five scenario questions on pytest, logging and pdb. If you miss more than one, reread the lesson before the final check.

Course content

Sign in to save your progress.

Course Home
2. Which test is most likely to catch an off-by-one bug in a "free shipping from 1,000" rule?
3. A script runs every night on a server, and sometimes produces a wrong total. Nobody is watching when it runs. Which tool fits?
4. You want to check that apply_discount(1000, 150) refuses the bad percent. How do you test that with pytest?

About

Five scenario questions on pytest, logging and pdb. If you miss more than one, reread the lesson before the final check.

Duration
5 min
Last update
09/09/2026
Was this helpful?
​ 0 ​ 0

Comments (0)

Sign in to comment

No comments yet.