I'm completely new to programming and to python. I'm using python 3.9 at the moment, trying to go through a simple python tutorial, but one of the tasks gives me problems.
Im supposed to get an output like this: (after asking the user up to which number he wants to go)
1*
2**
3***
4****
5*****
6******
7*******
My code looks like this at the moment:
usercount = int(input("Up to what number do you want to go?"))
for x in range(usercount):
print(x+1, "*")
and the output looks like that:
1*
2*
3*
4*
5*
6*
7*
What do I have to do?
Thank you.