0

How to print pattern in python. Like Pyramid

I know the code but don't know how logic works. Anyone explain plz

15th Oct 2018, 9:08 AM
Tejas
Tejas - avatar
4 Antworten
+ 2
If I was you I'd show the code first...
15th Oct 2018, 9:18 PM
Skipper
Skipper - avatar
+ 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
2nd Nov 2018, 4:19 PM
Skipper
Skipper - avatar
0
good
20th Oct 2018, 3:48 AM
raju dhanani
raju dhanani - avatar
0
for i in range(0, 5): for j in range(0, i+1): print("* ",end="") print()
21st Oct 2018, 7:13 AM
Tejas
Tejas - avatar