Python - File Reading and Writing Strategies
What does the
file.read() method do when reading a file in Python?file.read() method do when reading a file in Python?file.read()read() method reads all the content from the file at once as a single string.readline() read one line, and readlines() read all lines into a list, but read() reads everything as one string.file.read() = entire file content [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions