vendredi 25 septembre 2015

Making a pattern in python

I do not know how to use loops in python and need help to make this pattern:

*
**
***
**** 
***** 

This is what I have tried:

for x in range(0, 5):
  print ("*")    

And the result is:

*
*
*
*
*

Aucun commentaire:

Enregistrer un commentaire