Question: Using python. Re-write the Batman/Riddler problem using Functions to perform all checks on the possible conditions. You will need to have at least 5 functions,
Re-write the Batman/Riddler problem using Functions to perform all checks on the possible conditions. You will need to have at least 5 functions, one for each of the 4 different conditions on the digits and a 5th that checks if all 4 conditions are met Your main program code should/could look something like this where "allchecked(thous, huns, tens, ones)" is a function that checks to see of the 4 different conditions are all met. Please attach your.py file for grading for thous in rangeci, 10); for huns in range(0, 10): for tens in rangeCo, 10): for ones in range(0,10): if all_checked(thous, huns, tens, ones): print("Batman! The Riddler's next caper is at ", thous, huns, tens, ones, "Pennsylvanina Avenue!", sep-") break
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
