Curso_Intensivo_de_PYTHON/chapter_10/number_writer.py
2023-06-02 17:22:53 +02:00

7 lines
128 B
Python

import json
numbers = [2, 3, 5, 7, 11, 13]
filename = 'numbers.json'
with open(filename, 'w') as f:
json.dump(numbers, f)