Hi friends,
write a function and as set and list tuple as parameter to check list tuple key in set and print list tuple value in list
Example :
# set
colors = {'black','pink','yellow'}
# list tuple
list1 = [('green',100),('yellow',13),('red',6)]
Expected output : [13] bcoz yellow color is present in set
Thanks in advance


Jignesh KumarRank #91 · 22.9K reputationPosted Apr 20, 2020, 3:15 AM EDT
Amit Kumar SinghRank #562 · 4.3K reputationPosted Apr 20, 2020, 3:23 AM EDT