Print Pyramid in the Console in Python

Published: 24 July 2022
on channel: Python 5
1,346
80

How to print pyramid in the console. Python
#shorts #python #programming #coding

rows = 10
k = 0
for i in range(1, rows + 1):
for space in range(1, (rows-i)+1):
print(end=' ')
while k != (2*i-1):
print("* ", end="")
k += 1
k = 0
print()


Watch video Print Pyramid in the Console in Python online without registration, duration hours minute second in high quality. This video was added by user Python 5 24 July 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,346 once and liked it 80 people.