If i have a dictionary like:
d = {'word': {'word1': '1', 'word2': '-1', 'word3': '2'}}
is there any way in which i can detect which string contains a number and turn that string into the corresponding int representation of that number?
edit: omg i finally solved it, thank you so much! (unfortunately i can't upvote)