Question from the Python - Fundamentals test

Read a file in Python

Easy

What is the value of the variable string in the following code ?

f = open("demofile.txt", "r")
string = f.readlines()
f.close()
Author: ThéoStatus: PublishedQuestion passed 1417 times
Edit
3
Community EvaluationsNo one has reviewed this question yet, be the first!