Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. # The style is like this:
  2. # arr = [ expression for value in collection if condition ]
  3.  
  4. arr = [ x ** 3 for x in range(100) if x % 5 ]
  5. # cubes of numbers less than 100 which are not divisible to 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement