Untitled

mail@pastecode.io avatar
unknown
python
18 days ago
256 B
3
Indexable
Never
# Criando arquivo json

import json

desafio_json = '''
{
    "name:" "John Smith",
    "age:" 30,
    "city:" "New York",
    "isStudent:" true
    "gpa:" 3.5
}
'''

with open("desafio.json", "w") as arquivo_json:
    json.dump(desafio_json, arquivo_json)
Leave a Comment