Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Need Python Code ASAP !!!!!!! Will thumbs up ! Two parts plz What loop control statements might go into the first and second blanks so
Need Python Code ASAP !!!!!!! Will thumbs up !
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 Two parts plz
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started