0

How to print '*' pyramids please explain with example.

3rd Oct 2018, 2:56 PM
partha
partha - avatar
3 Réponses
+ 3
partha you can simply done this with the help of for loop. for i in range(6,0,-1): print('*'*i) #output * * * * * * * * * * * * * * * * * * * * *
3rd Oct 2018, 3:52 PM
Maninder $ingh
Maninder $ingh - avatar
+ 2
Check this code it will help you how you can print pyramids with the help of * https://code.sololearn.com/cLY4WXw8Sg0C/?ref=app
3rd Oct 2018, 3:44 PM
Maninder $ingh
Maninder $ingh - avatar
+ 1
thanks Maninder Singh but I need a simple explanation on how it is done and it's better if the example is simpler like * * * * * * * * * * * * * * * (I'm basically a noob)
3rd Oct 2018, 3:47 PM
partha
partha - avatar