I have an assignment for python to have user input 5 white numbers and 1 red for powerball, so far heres what i've got, the problem i'm having is outputting the winning result, it is printing my entire dictionary and i don't know how to word this to have it give the proper key's output, i have also tried using if matches in Prizes: print(Prizes[macthes]) which yeilded nothing.
grand_prize = '$242,000,000' Prizes = { '0, 1':'$4', '1, 1':'$4', '2, 1':'$7', '3, 0':'$7', '3, 1':'$100', '4, 0':'$100', '4, 1':'$50,000', '5, 0':'$1,000,000', '5, 1': grand_prize } #WHITE and RED = winning numbers WHITE = [2, 12, 16, 29, 54] RED = 6 white_nums = 0 red_nums = 0 nums = input('Please enter your 5 white balls 1-69 and red ball 1-26:') user_nums = nums.split() for x in range(0, 4): if int(user_nums[x]) in WHITE: white_nums += 1 if int(user_nums[-1]) == RED: red_nums += 1 matches = (white_nums, red_nums) for matches in Prizes: print(Prizes[matches])