+1

How to draw this pattern in python

543212345 4 4 3 3 2 2 1

9/3/2019 3:49:32 PM

Kshitij Gangwar

2 Answers

New Answer

+2

finally https://code.sololearn.com/cvFd6mtGSYJO/?ref=app

+1

This seems to work: s = '543212345' print(s) for i in range(1, 5): line = (' ' * i) + (s[i]) if i < 4: line = line + (' ' * (len(s) - i * 2 - 2)) + (s[i]) print(line)