-1

My classmates and I started studying Python, and one of the problems we encountered is how to design a menu that does the following:

  1. Read a 4-digit number, display the largest digit and report whether it is odd or even.
  2. Read two 3-digit numbers, form a third number with the highest of the first and the lowest of the second.
  3. Read a 3-digit number and form the largest number possible with your digits.
  4. Exit
bbnumber2
  • 643
  • 4
  • 18

1 Answers1

-1

You should use for loop with some variables respectively for the lowest and highest number or the built-in min(), max() functions done the same. To read input use input("here is some prompt message") more here: [link] How to prompt for user input and read command-line arguments hope it help you out!

alexDuty
  • 72
  • 1
  • 8