repl.it
@anonymous/

PinkLowSeabird

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
p,s='',str.split
for _ in s('N '.join(s('P '.join(s(input(),'P')),'N'))):
 v=int(_[:-1]);p+=['='*v,('- '*v)[:v]][_[-1]=='P']
l=len(p);u='_'*l
print(u+'\n'*3+p+'\n\n'+u)
?