filmov
tv
How to Make Pyramid with Python. Python Basic Program to Print Pyramid
Показать описание
Python Programming Tutorial
pyramid
pyramid python
a= int(input("enter the no. of line of pyramid "))
m=a;
b=64 # ascii code of A
a=a+1;
for j in range (0,a):
for k in range(0,m):
print(end=" ")
for l in range(0,j):
print(chr(b),end=" ")
m=m-1
b=b+1
print("\r")
pyramid
pyramid python
a= int(input("enter the no. of line of pyramid "))
m=a;
b=64 # ascii code of A
a=a+1;
for j in range (0,a):
for k in range(0,m):
print(end=" ")
for l in range(0,j):
print(chr(b),end=" ")
m=m-1
b=b+1
print("\r")