Algorithme proposé par william 25 /11/15
from random import*
def william():
S="*"
n=input("tapez un nombre pas trop grand ")
while n>0:
print S
S=S+"*"
n=n-1
print " voilà une pyramide d'étoiles n'est - ce pas ?"
Par exemple
>>> william()
tapez un nombre pas trop grand 15
*
**
***
****
*****
******
*******
********
*********
**********
***********
************
*************
**************
***************
voilà une pyramide d'étoiles n'est -cepas ?
>>>
----------------------------------------------------------------------------------------