I wanted to make a Python prog just for fun, to get a pattern like:
*
**
***
****
*****
******
*******
********
*********
**********
So, basically, I started off by making a script to simply print
*****
using a loop.
Here's the code I used:
import time
for a in range(5):
print ('*')
a+=1
time.sleep(3)
But I only get 5 asterisks in a line one below the other, not beside one another! Why?