diff --git a/HNS/Excercises/.DS_Store b/HNS/Excercises/.DS_Store index 5794bfe..7e583a9 100644 Binary files a/HNS/Excercises/.DS_Store and b/HNS/Excercises/.DS_Store differ diff --git a/HNS/Excercises/12082023 Найти второй символ в строке/.idea/.name b/HNS/Excercises/12082023 Найти второй символ в строке/.idea/.name new file mode 100644 index 0000000..11a5d8e --- /dev/null +++ b/HNS/Excercises/12082023 Найти второй символ в строке/.idea/.name @@ -0,0 +1 @@ +main.py \ No newline at end of file diff --git a/HNS/Excercises/13082023 ДЗ по фигурам JSON/main.py b/HNS/Excercises/13082023 ДЗ по фигурам JSON/main.py index f68d289..8169392 100755 --- a/HNS/Excercises/13082023 ДЗ по фигурам JSON/main.py +++ b/HNS/Excercises/13082023 ДЗ по фигурам JSON/main.py @@ -2,9 +2,13 @@ import json def json_to_python(): - with open("shapes.json") as shapes: - data = json.load(shapes) - return data + with open("shapes.json") as lines: + data = json.load(lines) + for shape in data["shapes"]: + print("Type:", shape["type"]) + print("Color:", shape["color"]) + print() + return True print(json_to_python())