Last active
November 6, 2018 19:03
-
-
Save knapply/84dcb4ecc6f886f4b08ca83487c6d533 to your computer and use it in GitHub Desktop.
Py: length built-in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
py_generator = range(1, 21) | |
result = len(py_generator) | |
print(result) | |
#> 20 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment