Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # The style is like this:
- # arr = [ expression for value in collection if condition ]
- arr = [ x ** 3 for x in range(100) if x % 5 ]
- # cubes of numbers less than 100 which are not divisible to 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement