-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhigherOrLower.py
More file actions
175 lines (154 loc) · 6.6 KB
/
higherOrLower.py
File metadata and controls
175 lines (154 loc) · 6.6 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
import random
#higher or lower
logo = """
_ _ _ _ _
| | | (_) | | | |
| |__| |_ __ _| |__ ___ _ __ | | _____ _____ _ __
| __ | |/ _` | '_ \ / _ \ '__| | | / _ \ \ /\ / / _ \ '__|
| | | | | (_| | | | | __/ | | |___| (_) \ V V / __/ |
|_| |_|_|\__, |_| |_|\___|_| |______\___/ \_/\_/ \___|_|
__/ |
|___/
"""
vs = """
_ __
| | / /____
| | / / ___/
| |/ (__ )
|___/____(_)
"""
#for a better maintanace we could put thiis in diffrent file
# countries_data = {
# { "country":'United States',
# 'population': 331883986,
# 'continent': 'North America',
# 'description': 'The United States of America is a country located in North America.'}
# ,
# {'country':'China',
# 'population': 1444216107,
# 'continent': 'Asia',
# 'description': 'China is a populous country in East Asia known for its rich history and culture.'}
# ,
# {'country': 'India',
# 'population': 1393409038,
# 'continent': 'Asia',
# 'description': 'India is a diverse country in South Asia, known for its vibrant traditions and history.'}
# ,
# {'country': 'Brazil',
# 'population': 213993437,
# 'continent': 'South America',
# 'description': 'Brazil is a vast country in South America, famous for its Amazon rainforest and lively carnivals.'}
# ,
# {'country' :'Russia',
# 'population': 145912025,
# 'continent': 'Europe/Asia',
# 'description': 'Russia is the largest country in the world, spanning both Europe and Asia with diverse landscapes.'}
# ,
# { 'country' :'Indonesia',
# 'population': 273523615,
# 'continent': 'Asia',
# 'description': 'Indonesia is an island country in Southeast Asia with a rich blend of cultures and traditions.'}
# ,
# { 'country' :'Pakistan',
# 'population': 225199937,
# 'continent': 'Asia',
# 'description': 'Pakistan is a country in South Asia known for its diverse landscapes and cultural heritage.}'
# ,
# { 'country' :'Nigeria',
# 'population': 211400708,
# 'continent': 'Africa',
# 'description': 'Nigeria is a West African country known for its cultural diversity and natural resources.'}
# ,
# 'country' :'Bangladesh',
# 'population': 166303498,
# 'continent': 'Asia',
# 'description': 'Bangladesh is a South Asian country with a rich history and a densely populated delta region.'
# ,
# 'country' :'Mexico',
# 'population': 130262216,
# 'continent': 'North America',
# 'description': 'Mexico is a North American country known for its ancient ruins and vibrant culture.'
# ,
# 'country' :'Japan',
# 'population': 125837183,
# 'continent': 'Asia',
# 'description': 'Japan is an island nation in East Asia known for its advanced technology and unique culture.',
# 'country' :'Ethiopia',
# 'population': 120048923,
# 'continent': 'Africa',
# 'description': 'Ethiopia is an East African country with a history dating back to antiquity and diverse wildlife.'
# ,
# {
# 'country' :'Philippines',
# 'population': 112867743,
# 'continent': 'Asia',
# 'description': 'The Philippines is an archipelago country in Southeast Asia, known for its stunning beaches and warm hospitality.'}
# ,
# 'country' :'Egypt',
# 'population': 104258327,
# 'continent': 'Africa',
# 'description': 'Egypt is a country in North Africa known for its ancient pyramids and rich cultural heritage.'
# ,
# 'country' :'Vietnam',
# 'population': 97490013,
# 'continent': 'Asia',
# 'description': 'Vietnam is a Southeast Asian country known for its beautiful landscapes and rich history.'
# ,
# 'country' :'DR Congo',
# 'population': 89979814,
# 'continent': 'Africa',
# 'description': 'The Democratic Republic of the Congo is a country in Central Africa with vast rainforests and wildlife.'
# ,
# 'country' :'Turkey',
# 'population': 85042782,
# 'continent': 'Asia/Europe',
# 'description': 'Turkey is a transcontinental country located mainly on the Anatolian Peninsula in Western Asia.'
# ,
# 'country' :'Iran',
# 'population': 84959240,
# 'continent': 'Asia',
# 'description': 'Iran is a country in Western Asia known for its ancient history and rich cultural heritage.'
# ,
# 'country' :'Germany',
# 'population': 83132799,
# 'continent': 'Europe',
# 'description': 'Germany is a country in Central Europe known for its engineering achievements and cultural contributions.'
# ,
# 'country' :'Thailand',
# 'population': 69428524,
# 'continent': 'Asia',
# 'description': 'Thailand is a Southeast Asian country known for its stunning temples and delicious cuisine.'
# }
# a compare line first comparison
#vs line
#against line
'''
1-generate a random account from the game data
2-format the account data into printable format
3- ask user for a guess
4- check if user is correct
##get follower count of each account
# ## use if statement
give me a feedback on their games
make them repeatable
making the account at position b to a
# '''
print(logo)
#generate a randome account
def format_data(account):
dict_country = countries_data['country']
dict_population = countries_data['population']
dict_continet = countries_data['continent']
print(f"the country i s{dict_country} and the population is {dict_population} and it's in {dict_continet}")
account_a = random.choice(list(countries_data['country']))
print(f"-----------------{account_a}")
# account_b = random.choice(countries_data)
# if account_a == account_b:
# account_b = random.choice(countries_data)
# print(f"compare A: {format_data(account_a)}")
# print(vs)
# print(f"compare B: {format_data(account_b)}")
# guess = input('who has more followrs Type a or type B').lower()
# a_population = account_a['population']
# b_population = account_b['population']
# def check_awnser(guess,a_population,b_population):