Multiple Choice
How would you use a for loop to read the text from a file named myFile?
A) for line in myFile:
B) for myFile read line:
C) read line myFile for:
D) for myFile : line
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q12: If the condition in a while loop
Q13: The read(n) method will read and return
Q14: What is an infinite loop?
Q15: What statement is used to close a
Q16: The _ method returns the contents of
Q18: What command is used to open a
Q19: Describe the format of a CSV file.
Q20: You must have more than one for
Q21: Using JSON, data is formatted most like
Q22: How is the newline character represented in