0 0 1 0 0
0 1 1 1 0
1 1 1 1 1
can i get code for this please!
num = 3 c = 1 for i in reversed(range(0,num)): mesg = '0'*i+'1'*c+'0'*i print(' '.join(list(mesg))) c += 2
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment