Question: in PYTHON use only for or while loop. Please take a screen shot of the code Question 5 (35 points) Write a program that asks

in PYTHON use only for or while loop. Please take a screen shot of the codein PYTHON use only for or while loop. Please take a screen

Question 5 (35 points) Write a program that asks the user for a sequence of positive integers, then it prints a number with the smallest sum-digits, and its position in the sequence (line1, line 2, etc.) Note: If there is more than one number with the same minimum sum-digits, your program should output either one. Your program should interact with the user exactly as demonstrated below. Execution example: How many numbers do you wish to enter? Enter a sequence of 5 positive integers, each in a separate line: 521 2674 32 1121 792 1121 is a number with the smallest sum-digits. You entered it on line 4

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!