Star Steps

Lab Python Beginner 10 points

Print a staircase of stars, 1 to 4 stars, using string repetition ("*" * n).

Input

None.

Output

*
**
***
****

Example

Output

*
**
***
****
Sample output available
Editor
Python

Hints

Multiplying a string by a number repeats it.

Solution explanation

"*" * 3 gives "***". Later you'll do this with a loop.

Show solution
print("*" * 1)
print("*" * 2)
print("*" * 3)
print("*" * 4)
Output
Answer
HOME LEARN COMMUNITY DASHBOARD