🐍 Grade 9 Python Practice
Grade 9-10 — Dicts, OOP & Algorithms
Choose an exercise:
1. Dictionaries
Store and access data using a dictionary.
💡 Hint: Try adding more keys like 'school' or 'age'.
2. Classes
Create a simple class with a method.
💡 Hint: Create another animal with a different name.
3. List comprehension
Create a list of squares using list comprehension.
💡 Hint: Both print the same thing. List comprehension is more compact.
💡 How to use this editor
▶
Run your code — green button or Ctrl+Enter
✏️
Edit freely — change values and run again
🔴
Errors are okay — read the message and fix it
🔄
Stuck? — pick another exercise for fresh code
✏️ Your Code
Output:
— click Run Code to see output —