From 237361c22ba266f753fd618240b0332c0ca4571b Mon Sep 17 00:00:00 2001 From: vladislavtrukhin Date: Sat, 15 Feb 2020 17:59:13 -0500 Subject: [PATCH] Finished up user input for main.py --- main.py | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index ce47b77..33b616d 100644 --- a/main.py +++ b/main.py @@ -1 +1,34 @@ -print("hello") \ No newline at end of file +#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() \ No newline at end of file