Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Harness The Power Of Big Data The IBM Big Data Platform

Authors: Paul Zikopoulos, David Corrigan James Giles Thomas Deutsch Krishnan Parasuraman Dirk DeRoos Paul Zikopoulos

1st Edition

0071808183, 9780071808187

More Books

Students also viewed these Databases questions

Question

Do you often listen to your intuition?

Answered: 1 week ago