Python - File Handling Fundamentals
What is wrong with this code snippet that tries to write 'Hello' to 'file.txt'?
file = open('file.txt', 'w')
file.write('Hello')file = open('file.txt', 'w')
file.write('Hello')15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions