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

python, need help with code!! python, need help with code!! Instructions from your teacher: Prompt for a

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!