tubeshowcase●1,194,391 videosβ™‘ My collection 0
← Learn to Code

Learn to Code04:03

Python map πŸ—ΊοΈ

Bro Code β†—

From the creator

Python map function tutorial example explained #python #map #function # --------------------------------------------------------------------------------------------------------------- # map() = applies a function to each item in an iterable (list, tuple, etc.) # # map(function,iterable) store = [("shirt",20.00), ("pants",25.00), ("jacket",50.00), ("socks",10.00)] to_euros = lambda data: (data[0],data[1]*0.82) # to_dollars = lambda data: (data[0],data[1]/0.82) store_euros = list(map(to_euros, store)) for i in store_euros: print(i) # --------------------------------------------------------------------------------------------------------------- Bro Code merch store πŸ‘Ÿ : =========================================================== https://teespring.com/stores/bro-code-5 ===========================================================

Published 2021-01-18 Β· Watch on YouTube β†—
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code