0
I am trying to create a function, which upon receiving a string looks for an element of it is in a list of tuples and if yes, substitute for the second element of the tuple
for example my string is:
String = ["2", "777", "7"]
and my list of tuples:
list = [("2","A"),("22","BB"),("7","P"),("77...