0

# Noob at Python

So how do I make in while loop? Display: * ** *** **** *****

1 Answer

+ 5

n = 0
while n <= 5:
print("*"*n)
n += 1

0

So how do I make in while loop? Display: * ** *** **** *****

1 Answer

+ 5

n = 0
while n <= 5:
print("*"*n)
n += 1