0
How to change paragraph within loop in python
5 ответов
+ 4
Please give me the code that you want to work with so that I can help you clearly.
+ 1
Give more info about what you want
0
n=int(input('enter height'))
a=0
b=0
c=0
d=0
for a in range(n):
if(a==0):
print(str(1).center(50))
if(a!=0):
for b in range (a+1):
c=a
d=b
def com(c,d):
if(b==0):
f=1
else:
f=1
while c>0 and d>0:
f=f*(c/d)
f=int(f)
c=c-1
d=d-1
return f
x=com(c,d)
x=str(x)
print(x.center(100//(n+1)),end=' ')
0
New line is not adding
0
Please do not write your question sentence in the Relevant Tags. Tags are used by search engine, and the presence of irrelevant words (related to the question topic) will lessen the search engine accuracy.
Hope you understand 👍