Question: QUESTION 3 Given a text file random table.txt that has the following lines fluttering 42 youthful 73 post eggnog empty observant 53 94 39 What

 QUESTION 3 Given a text file random table.txt that has the

QUESTION 3 Given a text file random table.txt that has the following lines fluttering 42 youthful 73 post eggnog empty observant 53 94 39 What is printed by the following code when run in the same directory as the file? Assume the text file has no empty lines. fh open ('random table.txt') random strings = [] random numbers = [] for line in fh: fields = line.split() random strings.append (fields [01) random numbers . append ( int ( fields [ 1 ] ) ) print (random strings [2]) print (max (random numbers)) post 94 post 53 youthful 94 youthful 53 Traceback (most recent call last) File "", line 1, irn ValueError invalid literal for into with base 10

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!