Break Primitive Types
π¨βπΌ Excellent! You now know how to make programs that think and repeat.
You learned:
- π
if/elsefor making decisions - π
switchfor matching one value against many options - π
forloops for counted repetition - π
whileloops for conditional repetition - β Ternary operator for concise value selection
- π§―
try/catchfor handling errors
Next up: Functionsβpackaging up reusable logic with type-safe contracts!
Test Your Knowledge
Retrieval practice helps solidify learning by actively recalling information. Use this prompt with your AI assistant to quiz yourself on what you've learned.
Please quiz me on exercise 4 using the epicshop MCP server. Call the get_quiz_instructions tool with exerciseNumber "4" to get the quiz instructions, then quiz me one question at a time.