Guest User

Untitled

a guest
Jan 22nd, 2013
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. import random
  2.  
  3. n = int(raw_input('N = '))
  4. x = [random.randint(0, 100) for i in xrange(n)]
  5.  
  6. print x
  7. print max(x)
  8. print sum(x)
  9. print [i for i in x if i != 0][::-1]
Advertisement
Add Comment
Please, Sign In to add comment