Answered step by step
Verified Expert Solution
Question
1 Approved Answer
What data type does the following function return? def read _ text ( filename ) : def read _ text ( filename ) : words
What data type does the following function return?
def
readtextfilename:
def readtextfilename:
words
words
with
openfilename
r
as
infile:
with openfilenamer as infile:
for
line
in
infile:
for line in infile:
words
line.split
words line.split
return
words
return words
Choice of :a D list
Choice of :a dictionary
Choice of :a D list
Choice of :a string
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