This repository was archived by the owner on Jan 2, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsundbox.py
More file actions
71 lines (64 loc) · 2.83 KB
/
sundbox.py
File metadata and controls
71 lines (64 loc) · 2.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# my_tuple = (32, 45, 32, 60, 43, 19, 39, 75, 50, 12, 53, 13, 28, 70, 68, 5, 64, 55, 30, 47, 23, 20, 17, 36, 45, 31, 46, 50, 33, 45, 9, 41, 12, 57, 40, 43, 47, 51, 56, 54, 40, 30, 37, 23, 43, 66, 64, 27, 44, 75, 51, 2, 19, 72, 30, 8, 29, 43, 7, 73, 34, 65, 54, 50, 43, 6, 50, 45, 49, 30, 39, 50, 41, 70, 38, 16, 31, 51, 72, 45, 58, 39, 50, 56, 24, 30, 9, 53, 27, 31, 68, 56, 26, 39, 34, 50, 10, 12, 3, 27)
# my_tuple = my_tuple[-1:-len(my_tuple)-1:-1]
# print(my_tuple)
# my_tuple = (-214, 181, -139, 448, -664, -66, 213, 832, 717, -462, -924, -706, -85, -244, -222, -340, -482, -518, -781, 759, -593, 905, -354, -377, -141, -742, 383, -381, 109, -639, -480, -810, -686, 892, -612, 696, 993, 791, 631, -493, -218, -829, -275, 619, -628, -241, -565, -835, -69, 747, 711, -252, -811, -407, -153, 904, 933, -254, 307, -493, -419, -109, -543, 155, -127, 613, -452, -459, 856, 562, 333, -66, -77, -598, -779, -278, 867, 321, -20, -415, -357, 735, -906, -14, -370, 453, -630, -736, -830, -917, 32, 422, -895, 198, 284, 472, -986, -964, -73, 29)
# new_list = [i for i in my_tuple if i%2!=0]
# print(sum(new_list)/len(new_list))
# from string import ascii_lowercase
# #alphabet = {}
# print(ascii_lowercase)
# person = {
# "guid": "ba151b32-0f28-4c6d-b0fd-11a532b881a1",
# "balance": "$1,971.04",
# "age": 30,
# "eyeColor": "green",
# "name": "Brennan Duffy",
# "gender": "male",
# "email": "brennanduffy@viasia.com",
# "phone": "+1 (811) 539-3385",
# }
# print(len(person))
# address = {
# "id": 7973,
# "uid": "42f2ce1d-90ab-4345-9595-0d9f42e6c085",
# "city": "East Monteland",
# "street_name": "Gusikowski Land",
# "street_address": "3230 Daugherty Centers",
# "secondary_address": "Apt. 562",
# "building_number": "58671",
# "mail_box": "PO Box 5313",
# "community": "Paradise Square",
# "zip_code": "58611",
# "zip": "01667",
# "postcode": "00563",
# "time_zone": "America/New_York",
# "street_suffix": "Burg",
# "city_suffix": "mouth",
# "city_prefix": "West",
# "state": "Wisconsin",
# "state_abbr": "NY",
# "country": "Mali",
# "country_code": "MH",
# "latitude": -56.97457993706476,
# "longitude": -104.29509072140858,
# "full_address": "Apt. 982 4820 Leena Rest, Lake Giannaville, MN 09265-3715"
# }
# check_list = ['zip_code', 'longitude', 'post_code','street_name','number_house']
# for val in check_list:
# print(val in address)
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')
print(user)