rank0001

Untitled

Nov 25th, 2021
424
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. num = input()
  3. length = 5-len(num)
  4. if(length%2==0):
  5.     a = length/2
  6.     b=  length/2
  7. else:
  8.     a = (length/2)+1
  9.     b = int(length/2)
  10. c='0'
  11. str=""
  12. for x in range(int(a)):
  13.     str+=c
  14. for x in range(int(b)):
  15.     num+=c
  16. print(str+num)
  17.    
  18.    
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
RAW Paste Data