Python Hello World
💡
Exercise 3

Pattern 10 XP Easy

Ctrl+Enter Run Ctrl+S Save

Nice work! Now let's get creative with print(). You can use it to create ASCII art — patterns made from text characters.

For example:

print(' * ') print(' *** ') print('*****')

This prints a little triangle! Use spaces and characters to create patterns.

📋 Instructions
Using `print()` statements, create this pattern: ``` * *** ***** ******* ***** *** * ``` This is a diamond shape! Pay close attention to the spaces.
Count the spaces before each row of stars. Row 1: 3 spaces + 1 star. Row 2: 2 spaces + 3 stars. And so on.
⚠️ Try solving it yourself first — you'll learn more!
print('  *  ')
print(' *** ')
print('*****')
🧪 Test Cases
Input
Run your code
Expected
* *** ***** ...
Expected output (7 lines)
main.py
Hi! I'm Rex 👋
Output
Ready. Press ▶ Run or Ctrl+Enter.