Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> gridsize=10
- >>> t=gridsize/5
- >>> range(30)
- [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]
- >>> map(snap,range(30))
- [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]
- >>> t=gridsize/3
- >>> map(snap,range(30))
- [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]
- >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement