Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Solve this using Python! 1 Ith a round of aingo, every player gets a 55 grid of ispaces. Every, space, has a number, and the

Solve this using Python! image text in transcribed
1 Ith a round of aingo, every player gets a 55 grid of ispaces. Every, space, has a number, and the columna are feach given a letter: B, I, N, G, o. The person and FNumbers are not purely randomly distributed, though. Nrumbers in the B column always come between 1 and 15 . Numbers in the I column always come between 16 and 30 . NNumbers in the N column always come between 31 and 45 . Nhumbers in the G column always come between 46 and 60 . So, certain letter-number combinations are invalid. in 17 would be invalid because column B is only numbers *hrough 17 . J 63 would be invalid because J is not fone of the letters on a bingo board. 0 117 would be Hinvalid because 117 is not one of the numbers ever on Ha bingo board. Write a function called bingo checker. bingo checker *should take as input two parameters, both strings *representing a letter and a number. bingo checker * should return True if the letter-number combination *represents a valid spot on a Bingo card, False otherwise. Write your function here! \#Below are some lines of code that will test your function. \#You can change the value of the variable(s) to test your \#function with different inputs. \# \#If your function works correctly, this will originally \#print the values shown in the comments. print (bingo_checker ("B", "1")) \#True print(bingo-checker("B", "17")) \#False print(bingo-checker("0", "75")) \#True print(bingo_checker ("O", "126")) \#False print(bingo_checker (" J,"63")) \#False

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions