Skip to content

Commit

Permalink
Finished up user input for main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vladislavtrukhin committed Feb 15, 2020
1 parent 9d72247 commit 237361c
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
@@ -1 +1,34 @@
print("hello")
#import places as places

def main():
#Get user input
i = 0
listPreferences = {"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):
listPreferences["Restaurant"] = 1
if (userInput == 1):
listPreferences["Arts & Culture"] = 1
if (userInput == 2):
listPreferences["Entertainment"] = 1
if (userInput == 3):
listPreferences["Shopping"] = 1
print("Do you want to add additional preferences\n0:No\n1:Yes")
print(listPreferences)
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()

0 comments on commit 237361c

Please sign in to comment.