Question: python, need help with code!! Instructions from your teacher: Prompt for a sequence of numbers, the last number being zero. Print the maximum and second
Instructions from your teacher: Prompt for a sequence of numbers, the last number being zero. Print the maximum and second maximum of the sequence. Assume that at least two number will alwasy be entered. Hint: Each time you find a new maximum, the old maximum becomes the second maximum Example Input Enter First Number: 1 Enter Second Number: 9 Enter a Number (zero to quit): 2 Enter a Number (zero to quit): 3 Enter a Number (zero to quit): 4 Enter a Number (zero to quit): 5 Enter a Number (zero to quit): 6 Enter a Number (zero to quit): 7 Enter a Number (zero to quit): 8 Enter a Number (zero to quit): 10 Enter a Number (zero to quit): 0 Example Output First Maximum: 10 Second Maximum: 9
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
