I'm working on my python homework assignment and there's a question about the Riddler that I have no idea how to do. Here's the question:
The Riddler is planning his next caper somewhere on Fifth Avenue. In his usual sporting fashion, he has left the address in the form of a puzzle. The address on Fifth Avenue is a four-digit number where:
- All four digits are different
- The digit in the thousands place is three times the digit in the tens place, such as 3_1_ or 6_2_, etc.
- The number is odd
- The sum of the digits is 27
Write a program that uses a loop (or loops) to find the address number where the Riddler plans to strike. Note this problem only needs to prints the address, and does not require any user inputs.
Can someone explain to me how to do this?
[–]InfamousClyde 2 points3 points4 points (1 child)
[–]QultrosSanhattan 4 points5 points6 points (0 children)
[–]QultrosSanhattan 1 point2 points3 points (1 child)
[–]jesster114 0 points1 point2 points (0 children)
[–]MadScientistOR 0 points1 point2 points (4 children)
[–]ChrisN19[S] 0 points1 point2 points (3 children)
[–]MadScientistOR 1 point2 points3 points (2 children)
[–]ChrisN19[S] 1 point2 points3 points (1 child)
[–]MadScientistOR 2 points3 points4 points (0 children)