-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
32 lines (27 loc) · 945 Bytes
/
main.py
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
#import places as places
def main():
#Get user input
i = 0
listCategory = {"Restaurant":0,"Arts & Culture":0,"Entertainment":0,"Shopping":0}
while i == 0:
print("Select preferences:\n0: Restaurant\n1: Arts & Culture\n2: Entertainment\n3: Shopping\n")
userInput = int(input())
if (userInput == 0):
listCategory["Restaurant"] = 1
if (userInput == 1):
listCategory["Arts & Culture"] = 1
if (userInput == 2):
listCategory["Entertainment"] = 1
if (userInput == 3):
listCategory["Shopping"] = 1
print("Do you want to add additional preferences\n0:No\n1:Yes")
print(listCategory)
userInput = int(input())
if (userInput == 0):
i = 1
#Call api functions
#coordinates = "2.230225,48.817716"
#x = places.findPlaces(coordinates)
#printall(x)
if __name__ == "__main__":
main()