Builtin Functions
Zip Function
countries = ["America", "Australia", "England"]
cities = ["New York", "Sydney", "London"]
countries_and_cities = zip(countries,capitals)
countries_and_capitals.__next__() # can only call once, if need it more than one, need to reinitializefrom itertools import zip_longest
countries = ["America", "Australia", "England", "France"]
cities = ["New York", "Sydney", "London"]
countries_and_cities = zip_longest(countries,capitals) # value will be None
countries_and_cities = zip_longest(countries,capitals, fillvalue="Fill when None")Enumerate Function
Lambda Function
Sort and Sorted Function
Map function
Filter Function
Any and All Function
Any
All
Iterators
Last updated