Advertisement
Guest User

001

a guest
May 4th, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. def z(x):
  2.     y=1
  3.    
  4.     x=str(x)
  5.    
  6.     for i in x:
  7.        y=y*int(x[0])
  8.        x = x.replace(x[0], '')
  9.        
  10.     print (y)
  11.    
  12. z(1234)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement