Talking About Your Projects Checkpoint
A review of this module. Skip it if you feel confident; the next module does not need it.
Fix the mistakes
The slips that cost marks in this module. Spot each one, then check the fix.
This checkpoint brings the module together: the story, the follow-up answers and the resume line. Try each question without looking back, then review the parts you missed.
Story, answers and facts together
A defensible claim is a statement about your project that you can back with code, a test or a count the moment someone asks.
Every sentence you say or write should pass one test: can I show this now? If yes, keep it. If not, change it to something you can show, or remove it.
claims = { "double booking is prevented": True, "handles 10,000 users": False, "has 20 tests": True,}safe = [c for c, provable in claims.items() if provable]print(safe)Example 1 · Keep only provable claims
claims = [ ("Unique seat per show", True), ("Used by 5,000 students", False), ("22 pytest tests", True),]for text, provable in claims: print(("keep: " if provable else "remove: ") + text)keep: Unique seat per show remove: Used by 5,000 students keep: 22 pytest tests
What this code does
- Each claim is paired with a flag that says whether you can prove it.
- The conditional expression picks the label.
- The user count has no proof, so it is removed.
The same test works for the story, for the follow-up answers and for each resume bullet.
Answer shape: need, choice, cost
For any "why" question, say the need, the choice and the cost. For any "what would you change" question, name a real gap and the first fix. For scale, say measure first.
Example 2 · Check the story length
story = "Students enrolled in full courses. I built the Course Enrollment System with FastAPI. I wrote the enrolment rule and tests. The hard part was capacity, so I locked the course row. A test shows 30 students and 5 seats give 5 enrolments."words = len(story.split())print(words, "words,", "fits" if words <= 250 else "too long")42 words, fits
What this code does
- The story is counted in words.
- Up to 250 words fits two minutes.
- The conditional expression gives a short verdict.
Practise aloud. Time your story, and aim for two minutes. Then ask a friend for a follow-up question you did not expect.
Module quiz
Questions from the whole module. Your first answer is your score.
Problems
Graded easy to hard, using everything from this module.
Try each one yourself first. Use the hint if you get stuck. Mark it as done when it works.
Exercise 1· Easy
Print Words: N for story = "I built the Ticket Booking Service and tested double booking.".
Words: 10
Exercise 2· Easy
Print the number of tests in tests = ["test_login", "test_book", "test_conflict", "test_full"] as 4 tests.
4 tests
Exercise 3· Medium
Print the story parts missing from {"problem": 1, "result": 2} in the order problem, solution, my_part, hard_problem, result.
solution my_part hard_problem
Exercise 4· Medium
A page size is 10. Print the items of page 2 of list(range(1, 24)).
[11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
Exercise 5· Medium
Use sqlite3 in memory: create a table enrollment (student TEXT, course TEXT, UNIQUE (student, course)), insert ("asha", "py") twice, and print ok then already enrolled.
ok already enrolled
Exercise 6· Hard
Twenty threads try to enrol in a course with 5 seats, using a lock. Print enrolled 5.
enrolled 5
Exercise 7· Hard
Print the bullets from the list that contain a digit, one per line, so you can check each number.
Use bullets = ["Built 12 endpoints", "Added JWT roles", "Wrote 20 tests"].
Built 12 endpoints Wrote 20 tests
Exercise 8· Hard
One app copy handles 25 requests per second. Print how many copies handle 110 per second, rounded up, as 5 copies.
5 copies
Interview questions
Questions interviewers ask on this topic.
What's next
You finished the preview of Talking About Your Projects
Python Programming has 21 sections, 110 modules and 609 lessons. An account opens every lesson and saves your progress.
Finish up
Mark this lesson complete
This is the last lesson in this section.