Question: Using python programming. Holy digits Batman! The Riddler is planning his next caper In his usual sporting fashion, he has left the address in the
Holy digits Batman! The Riddler is planning his next caper In his usual sporting fashion, he has left the address in the form of a puzzle. The address on Pennsylvania is a four-digit number where: . All four digits are difference tman! The Riddler is planning his next caper somewhere on Pennsylvania Avenue. . The digit in the thousands place is three times the digit in the tens place . The number is odd . The sum of the digits is 27 Write a program that finds the address where the Riddler plans to strike (using loops and conditionals). Please do not try to solve this using math substitution or simultaneous equations. You should just test all possible numbers until you find one that works. The output from your program should read as follows (replacing the XXxx with the 4 digit address you calculate in your program): Batman! The Riddler's next caper is at XXXX Pennsylvania Avenue! Attach your python program file for grading when complete. NOTE: the system will only allow you to upload files with a py extension. Remember to follow good programming practices
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
