Hello Guy's I have question How do I replace string in string if string exist. Example:
list=['20':'1','40':'2','60':'3','80':'4','100':'5']
#I have this line:
x='abcd abcd 60'
num='60'
if num in x:
print('The new number is: ')
and it will print 3 instead of 60, how can I do that and otherwise if in x will be 80 it will replace it to 4.
Thanks