Python - File Reading and Writing Strategies
Identify the error in this code snippet:
file = open('log.txt')\nfor line in file:\nprint(line)file = open('log.txt')\nfor line in file:\nprint(line)15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions