1.

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'')

Answer» 3RD oneExplanation:INFILE = OPEN(''d:\python.txt'',''R'')infile.read( )infile.close( )


Discussion

No Comment Found