SHARE
TWEET

Untitled

a guest May 19th, 2017 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. >>> gridsize=10
  2. >>> t=gridsize/5
  3. >>> range(30)
  4. [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29]                                              
  5. >>> map(snap,range(30))
  6. [0, 0, 2, 3, 4, 5, 6, 7, 8, 10, 10, 10, 12, 13, 14, 15, 16, 17, 18, 20, 20, 20, 22, 23, 24, 25, 26, 27, 28, 30]                                            
  7. >>> t=gridsize/3
  8. >>> map(snap,range(30))
  9. [0, 0, 0, 3, 4, 5, 6, 7, 10, 10, 10, 10, 10, 13, 14, 15, 16, 17, 20, 20, 20, 20, 20, 23, 24, 25, 26, 27, 30, 30]
  10. >>>
RAW Paste Data
Want to get better at Python?
Learn to code Python in 2017
Top