|
@@ -59,16 +59,64 @@ subject_marks = [('English', 88), ('Science', 90), ('Maths', 88),
|
|
|
|
|
|
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
-heroes = {
|
|
|
- 'Spider-Man': 80,
|
|
|
- 'Batman': 65,
|
|
|
- 'Superman': 85,
|
|
|
- 'Wonder Woman': 70,
|
|
|
- 'Flash': 70,
|
|
|
- 'Iron Man': 65,
|
|
|
- 'Thor': 90,
|
|
|
- 'Aquaman': 65,
|
|
|
- 'Captain America': 65,
|
|
|
- 'Hulk': 87,
|
|
|
-}
|
|
|
+models = [{'make': 'Nokia', 'model': 216, 'color': 'Black'},
|
|
|
+ {'make': 'Mi Max', 'model': 2, 'color': 'Gold'},
|
|
|
+ {'make': 'Samsung', 'model': 7, 'color': 'Blue'},
|
|
|
+ {'make': 'Apple', 'model': 10, 'color': 'Silver'},
|
|
|
+ {'make': 'Oppo', 'model': 9, 'color': 'Red'},
|
|
|
+ {'make': 'Huawei', 'model': 4, 'color': 'Grey'},
|
|
|
+ {'make': 'Honor', 'model': 3, 'color': 'Black'}]
|
|
|
+
|
|
|
+models = sorted(models, key=lambda x: x.get('color'))
|
|
|
+
|
|
|
+# for i in models:
|
|
|
+# print("Производитель: ", i.get('make'), ", модель: ", i.get('model'), ", цвет: ", i.get('color'), sep='')
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+# for i in sorted(models, key=lambda x : models.)
|
|
|
+
|
|
|
+#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
+
|
|
|
+# my_list = []
|
|
|
+
|
|
|
+# while True:
|
|
|
+# st = input()
|
|
|
+# if st == 'конец':
|
|
|
+# break
|
|
|
+# my_list.append(st.rpartition(':'))
|
|
|
+
|
|
|
+# for i in sorted(my_list, key=lambda x: -int(x[2])):
|
|
|
+# print(i[0])
|
|
|
+
|
|
|
+#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
+
|
|
|
+# n = int(input())
|
|
|
+# my_list = []
|
|
|
+# my_dict = {}
|
|
|
+
|
|
|
+# for i in range(n):
|
|
|
+# st = input()
|
|
|
+# if my_dict.get(st) == None:
|
|
|
+# my_dict.update({st: 1})
|
|
|
+# else:
|
|
|
+# my_dict.update({st: my_dict.get(st) + 1})
|
|
|
+
|
|
|
+# for key, value in my_dict.items():
|
|
|
+# my_list.append([key, value])
|
|
|
+
|
|
|
+# my_list = sorted(my_list, key=lambda x: x[1])
|
|
|
+
|
|
|
+# print(my_list[-1][0], ', ', my_list[-1][1], sep='')
|
|
|
+# print(my_list[0][0], ', ', my_list[0][1], sep='')
|
|
|
+
|
|
|
+#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
+
|
|
|
+print(type(input().split()))
|
|
|
+
|
|
|
+# my_dict = {}
|
|
|
+# n = input()
|
|
|
+# for i in range(n):
|
|
|
+# st = input().split()
|
|
|
+
|
|
|
|