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

Amit Kumar SinghPosted Apr 20, 2020, 7:23 AM
Jignesh KumarPosted Apr 20, 2020, 7:15 AM