Question: Python programming question Consider the following program. Rewrite it to make the changes indicated in the comments. Assume the user will enter valid file names

Python programming question

Consider the following program. Rewrite it to make the changes indicated in the comments. Assume the user will enter valid file names and valid values, so no error-checking is needed.

print("Enter three integer values - each on a separate line.", end =" ") #TODO: change the code below for user input so that the user enters a file name from which to read the three values # instead of typing in the three values from the console, then reads the 3 values from the file a = int(input()) b = int(input()) c = int(input()) #TODO: add code here to use if statements to determine the smallest value of the three #TODO: change the code below to write output to a text file called out.txt instead of # printing to the console print("The smallest value entered was {0}".format(min), end = " ") input("Press any key to exit...") 

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!