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()