Bingo. Write a PYTHON (3.5) program that simulates playing Bingo. In Bingo, each
ID: 3574960 • Letter: B
Question
Bingo. Write a PYTHON (3.5) program that simulates playing Bingo. In Bingo, each player has a card of numbers arranged in a 5×5 grid with five randomly-chosen numbers from 1 to 15 in the B column, 16 to 30 in the I column, 31 to 45 in the N column, 46 to 60 in the G column, and 61 to 75 in the O column. The central space is “free" and is considered occupied. The 24 numbers on a Bingo card are unique. An example Bingo card is shown below. More instructions are in the picture. A code has been written for you. You just need to complete it. You can find the code in this link:
https://repl.it/Ej4T/0
Also, I uploaded the bingo files to this website, because Chegg doesn't allow me to uploade it here.
http://www.megafileupload.com/83i7/bingo1.csv
http://www.megafileupload.com/83i8/bingo3.csv
http://www.megafileupload.com/83i9/bingo2.csv
Please make sure that you get same results as the examples in the picture. Also, please post a picture of the code so that i can see the indentation. I will rate and write a nice comment!
Explanation / Answer
Hii there the required "bingo" is here:
The numbers are accumulated in a set which would get returned from "pop". then add a function to read in the "winning" numbers (into a set) and check if that new set is a subset of the numbers which were called:
Code
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.