Guest User

Untitled

a guest
Nov 18th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. # -*- codign: utf-8 -*-
  2.  
  3. value=input()
  4.  
  5. if value%2==0:
  6. print"invalid"
  7. elif value==1:
  8. print "n"
  9. else:
  10.  
  11. n='n'
  12. d='.'
  13. nf=0
  14.  
  15.  
  16. for i in range(value):
  17.  
  18. if i<1 or i>=value-1:
  19. nf=0
  20. else:
  21. nf=1
  22.  
  23. print 'n'+d*(i-1)+n*nf+d*(value-i-2)+'n'
  24.  
  25. print "\n"
Add Comment
Please, Sign In to add comment