Back to task

142 symbols python2
Fri Sep 16 04:56:16 2016 Sait2000
r=range
a=[]
a+=([1]+[sum(a[-1][x:x+2])for x in r(i)]for i in r(input()))
for b in a:print" ".join("%%%ss"%len(`p`)%q for p,q in zip(a[-1],b))


Leave a comment

Parsed as Markdown

Login to leave a comment