|
@@ -612,8 +612,139 @@ print(a, b, c, d)
|
|
|
|
|
|
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
-from string import ascii_lowercase
|
|
|
+# from string import ascii_lowercase
|
|
|
|
|
|
-d = {ascii_lowercase[i]: i + 1 for i in range(len(ascii_lowercase))}
|
|
|
-print(d)
|
|
|
+# d = {ascii_lowercase[i]: i + 1 for i in range(len(ascii_lowercase))}
|
|
|
+# print(d)
|
|
|
+
|
|
|
+#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
+
|
|
|
+# my_dict = {1: "one", 2: "two"}
|
|
|
+# d1 = {'a': 100, 'b': 200, 'c': 333}
|
|
|
+# d2 = {'x': 300, 'y': 200, 'z': 777}
|
|
|
+
|
|
|
+# print(type(my_dict.items()))
|
|
|
+
|
|
|
+# for i in my_dict.items():
|
|
|
+# print(i[0], i[1])
|
|
|
+
|
|
|
+# d2.update(d1)
|
|
|
+# print(d2)
|
|
|
+
|
|
|
+#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
+
|
|
|
+# n = int(input())
|
|
|
+# d = {}
|
|
|
+
|
|
|
+# for i in range(n):
|
|
|
+# name = input()
|
|
|
+# if name not in d:
|
|
|
+# d[name] = 0
|
|
|
+# print('OK')
|
|
|
+# else:
|
|
|
+# d[name] += 1
|
|
|
+# print(name + str(d[name]))
|
|
|
+
|
|
|
+#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
+
|
|
|
+# countries = {
|
|
|
+# "Sweden": ["Stockholm", "Göteborg", "Malmö"],
|
|
|
+# "Norway": ["Oslo", "Bergen", "Trondheim"],
|
|
|
+# "England": ["London", "Birmingham", "Manchester"],
|
|
|
+# "Germany": ["Berlin", "Hamburg", "Munich"],
|
|
|
+# "France": ["Paris", "Marseille", "Toulouse"]
|
|
|
+# }
|
|
|
+
|
|
|
+# city = input()
|
|
|
+# flag = False
|
|
|
+
|
|
|
+# for key in countries.keys():
|
|
|
+# if city in countries[key]:
|
|
|
+# print(f'INFO: {city} is a city in {key}')
|
|
|
+# flag = True
|
|
|
+
|
|
|
+# if flag == False:
|
|
|
+# print(f'ERROR: Country for {city} not found')
|
|
|
+
|
|
|
+#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
+
|
|
|
+# from pprint import pprint
|
|
|
+
|
|
|
+# user = {
|
|
|
+# "id": 4170,
|
|
|
+# "uid": "5e941db5-9e0f-4f94-9fc5-734110c6be14",
|
|
|
+# "password": "SyUpfo1ljm",
|
|
|
+# "first_name": "Teresa",
|
|
|
+# "last_name": "Wehner",
|
|
|
+# "username": "teresa.wehner",
|
|
|
+# "email": "teresa.wehner@email.com",
|
|
|
+# "gender": "Non-binary",
|
|
|
+# "phone_number": "+674 424.561.2776",
|
|
|
+# "social_insurance_number": "637316241",
|
|
|
+# "date_of_birth": "1993-08-17"
|
|
|
+# }
|
|
|
+
|
|
|
+# user['secret'] = user.pop('password')
|
|
|
+# user['surname'] = user.pop('last_name')
|
|
|
+# pprint(user)
|
|
|
+
|
|
|
+#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
+
|
|
|
+# l = list(map(int, input().split()))
|
|
|
+
|
|
|
+# d = {}
|
|
|
+# cnt = -3
|
|
|
+# for i in range(len(l) - 1):
|
|
|
+# if len(d) == 0:
|
|
|
+# d = {l[-2]:l[-1]}
|
|
|
+# else:
|
|
|
+# d = {l[cnt]:d}
|
|
|
+# cnt -= 1
|
|
|
+
|
|
|
+# print(d)
|
|
|
+
|
|
|
+#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
+
|
|
|
+# s = 'waejskldcnvawefigas,dfaswe'
|
|
|
+# d = {}
|
|
|
+# for i in s:
|
|
|
+# if i.isalpha():
|
|
|
+# d[i] = d.get(i, 0) + 1
|
|
|
+
|
|
|
+# print(d)
|
|
|
+
|
|
|
+#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
+
|
|
|
+# workers = {
|
|
|
+# 'employer1': {'name': 'Jhon', 'salary': 7500},
|
|
|
+# 'employer2': {'name': 'Emma', 'salary': 8000},
|
|
|
+# 'employer3': {'name': 'Brad', 'salary': 500}
|
|
|
+# }
|
|
|
+
|
|
|
+# workers['employer3']['salary'] = 8500
|
|
|
+# print(workers)
|
|
|
+
|
|
|
+#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
+
|
|
|
+# supermarket = {
|
|
|
+# "milk": {"quantity": 20, "price": 1.19},
|
|
|
+# "biscuits": {"quantity": 32, "price": 1.45},
|
|
|
+# "butter": {"quantity": 20, "price": 2.29},
|
|
|
+# "cheese": {"quantity": 15, "price": 1.90},
|
|
|
+# "bread": {"quantity": 15, "price": 2.59},
|
|
|
+# "cookies": {"quantity": 20, "price": 4.99},
|
|
|
+# "yogurt": {"quantity": 18, "price": 3.65},
|
|
|
+# "apples": {"quantity": 35, "price": 3.15},
|
|
|
+# "oranges": {"quantity": 40, "price": 0.99},
|
|
|
+# "bananas": {"quantity": 23, "price": 1.29}
|
|
|
+# }
|
|
|
+
|
|
|
+# sum = 0
|
|
|
+
|
|
|
+# for i in supermarket.keys():
|
|
|
+# sum += supermarket[i]['quantity'] * supermarket[i]['price']
|
|
|
+
|
|
|
+# print(sum)
|
|
|
+
|
|
|
+#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|