Question: Given the following code for reading a file, fill in the missing parts of the code so it works correctly. f=[AAA](testQuestions.txt, [BBB]) for line
Given the following code for reading a file, fill in the missing parts of the code so it works correctly. f=[AAA]("testQuestions.txt", [BBB]) for line in [CCC]: = vals line. [DDD](",") q_num=vals[0] q_text = vals[1] print(q_num,q_text) f.close()
Step by Step Solution
There are 3 Steps involved in it
Answer Heres the corrected code with the missing parts filled in f o... View full answer
Get step-by-step solutions from verified subject matter experts
