Python - Structured Data Files
Identify the error in this code:
import json
with open('data.json', 'w') as f:
data = json.load(f)Identify the error in this code:
import json
with open('data.json', 'w') as f:
data = json.load(f)json.load(f) on a write-only file causes an error.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions