Sub4Sub network gives free YouTube subscribers
Get Free YouTube Subscribers, Views and Likes

Learn Python MAP() in 3 minutes! 🗺️

Follow
Bro Code

#python #pythonprogramming #pythontutorial

map(function, collection) = Applies a given function to all items in a collection

celsius_temps = [0.0, 10.0, 20.0, 30.0, 40.0, 50.0]

fahrenheit_temps = list(map(lambda temp: (temp * 9/5) + 32, celsius_temps))

print(fahrenheit_temps)

posted by ostaklimh0