narenarya

one line factorial program

Apr 20th, 2014
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.09 KB | None | 0 0
  1.  print '\nThe factorial is:%d'%reduce(lambda x,y:x*y,range(1,int(raw_input("Enter the no: "))+1))
Advertisement
Add Comment
Please, Sign In to add comment