🐍 Grade 7 Python Practice
Grade 7-8 — Functions & Strings
Choose an exercise:
1. Write a function
Create a function that greets someone by name.
💡 Hint: Add another greet() call with your own name.
2. Return a value
Write a function that doubles a number.
💡 Hint: Try calling double() with different numbers.
3. String methods
Try upper, lower, and len on a string.
💡 Hint: Change the text to your own name and run.
💡 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 —