Python - Context Managers
Find the error in this code snippet:
file = open('log.txt', 'w')
file.write('Start logging')
# forgot to close the fileFind the error in this code snippet:
file = open('log.txt', 'w')
file.write('Start logging')
# forgot to close the filewith [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions