daily pastebin goal
60%
SHARE
TWEET

Untitled

a guest Oct 17th, 2018 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. n = input("N:")
  2. def putra_petir(arg):
  3.     a = ["0","1"]
  4.     l = []
  5.     for i in range(int(arg)):
  6.         a.reverse()
  7.         l.append(a[-1])
  8.         print("_"*(arg-i) + a[-1])
  9.         if i == arg-1:
  10.             print("".join(l))
  11.     for i in range(arg):
  12.         a.reverse()
  13.         print("_"*((arg-1)-i) + a[-1])
  14.  
  15. print(putra_petir(int(n)))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top