Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
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