data = {"p": "8", "r": 17} print(data) data['points']=[{ 'x': 4, 'y': 105}, { 'x': 32, 'y': 1}, { 'x': 191, 'y': 1}] print(data)
{'p': '8', 'r': 17} {'p': '8', 'r': 17, 'points': [{'x': 4, 'y': 105}, {'x': 32, 'y': 1}, {'x': 191, 'y': 1}]} Process finished with exit code 0