0
How to print '*' pyramids please explain with example.
3 Respuestas
+ 3
partha you can simply done this with the help of for loop.
for i in range(6,0,-1):
print('*'*i)
#output
* * * * * *
* * * * *
* * * *
* * *
* *
*
+ 2
Check this code it will help you how you can print pyramids with the help of *
https://code.sololearn.com/cLY4WXw8Sg0C/?ref=app
+ 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)