Suppose there is a file a.txt and contains three names in it. Kareem Rahman Abdullah Which of the following statement is correct to print all the names that are present in a.txt ? a. Errors b. names =...

Programming
Suppose there is a file a.txt<br>and contains three names in<br>it.<br>Kareem<br>Rahman<br>Abdullah<br>Which of the following<br>statement is correct to print<br>all the names that are<br>present in a.txt ?<br>a. Errors<br>b. names =<br>open(

Extracted text: Suppose there is a file a.txt and contains three names in it. Kareem Rahman Abdullah Which of the following statement is correct to print all the names that are present in a.txt ? a. Errors b. names = open("a.txt", "r") for line in names: print("line") c. names = open("a.txt", "r") for line in names: print(line) d. names = open('a.txt", "r") for line in names: print(names)

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here