0
How to print pattern in python. Like Pyramid
I know the code but don't know how logic works. Anyone explain plz
4 odpowiedzi
+ 2
If I was you I'd show the code first...
+ 1
Well, what you're showing is a rectangular triangle code and not a pyramid.
Second, structure the code correctly.
if you're trying to understand the code the way you show it no wonder you can't grasp it
0
good
0
for i in range(0, 5): for j in range(0, i+1): print("* ",end="") print()