Question: Need Python Code ASAP !!!!!!! Will thumbs up ! Two parts plz What loop control statements might go into the first and second blanks so

What loop control statements might go into the first and second blanks so that the program keeps asking for a filename until one is opened without error. while True: filenane - input("Enter filename:") infile = open(filename) try: except: infile.close() 08.1 3 Points Enter a Python statement that could go in the first blank which is in the block undertry Enter your answer here Q8.2 3 Points Enter a Python statement could go in the second blank which is in the block under except Enter your answer here Q7 8 Points Consider the following code, where temps is a list of floating point numbers. max_temp = None max_index = None for i in range(len(temps)): if max_temp = temps [i] Q7.1 6 Points Fill in the first blank with a Boolean expression so that after the loop executes, the variable max_temp contains the maximum temperature. Do not use the built-in function maxo Enter your answer here Q7.2 2 Points Fill in the second blank with a statement completing the program so that after the loop executes, the variable max_index contains the index in the list corresponding to the maximum temperature. Enter your answer here
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
