Which one of the following syntaxes is the correct syntax to read from a simple text file stored in ''d:\python.txt''?
Infile = open(''d:\\python.txt'', ''r'')
Infile = open(file=''d:\\\python.txt'', ''r'')
Infile = open(''d:\python.txt'',''r'')
Infile = open.file(''d:\\python.txt'',''r'')
Answers
Answered by
0
Answer:
3rd one
Explanation:
infile = open(''d:\python.txt'',''r'')
infile.read( )
infile.close( )
Similar questions
India Languages,
1 month ago
Physics,
1 month ago
Math,
1 month ago
Accountancy,
3 months ago
Math,
11 months ago
Science,
11 months ago
Math,
11 months ago