Ahmet Taha

Ahmet Taha

  • NA
  • 381
  • 18.2k

python problem !!

Sep 13 2021 8:06 AM

Hello my dear guyz, could anyone can help me?

how to i solve this? thanks in advance

Create a python script which determines how much lottery winnings a player won based on a given winning number set. Given the following sequences, create a function that determines how many lottery numbers did each player win, and how much a player won for each winning number. Each winning number is worth 100 pesos. Note: work on and use the following lines of code for this activity.

winning = {10,11,8,1,5,20}
players = {
    "Jo":{1,8,10,27,12,15},
    "JoJo":{1,8,27,3,4,9},
    "Joe":{9,4,3,12,15,21},
}

Sample output:
JoJo won 200 pesos!
Jo won 300 pesos!
Joe won nothing!