Помогите решить задачу на Python. Программа:
a = {1: {"pla": [555,666]}, 2: {"pla": [665, 6222]}, 3: {"pla": [557865, 3466]}}
for g in a:
for i in a[g].items():
print('{} - {}'.format(g, ', '.join(i[1])))

Результат должен быть:
1 - 555, 666
2 - 665, 6222
3 - 557865, 3466
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Copyright © 2024 SCHOLAR.TIPS - All rights reserved.