matches = (white_nums, red_nums)creates a tuple that wont match with the keys in the dictionary that are strings.
change this to
matches = f'{white_nums}, {red_nums}'
for matches in Prizes: print(Prizes[matches])is just looping through the whole dictionary and overwrites the previous assignment to matches
remove those lines and replace with
result = Prizes.get(matches, 'sorry no prize this time') print(result)this will grab the value if the key matches exists or return the the string i gave as a default.
Also note there is an error in the size of your range
for x in range(0, 4):its not using all the expected input values.