0

How to change paragraph within loop in python

1st Oct 2019, 12:57 PM
Prakhar Sharma
Prakhar Sharma - avatar
5 Réponses
+ 4
Please give me the code that you want to work with so that I can help you clearly.
1st Oct 2019, 1:46 PM
Mohamed Arshad
Mohamed Arshad - avatar
+ 1
Give more info about what you want
1st Oct 2019, 1:43 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
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=' ')
1st Oct 2019, 2:31 PM
Prakhar Sharma
Prakhar Sharma - avatar
0
New line is not adding
1st Oct 2019, 2:32 PM
Prakhar Sharma
Prakhar Sharma - avatar
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 👍
1st Oct 2019, 3:30 PM
Ipang