Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBicPen committed Feb 16, 2020
2 parents 59e3182 + d90e3cd commit 336daa4
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 99 deletions.
14 changes: 7 additions & 7 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@
def main():
#Get user input
i = 0
listPreferences = {"Restaurant":0,"Arts & Culture":0,"Entertainment":0,"Shopping":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):
listPreferences["Restaurant"] = 1
listCategory["Restaurant"] = 1
if (userInput == 1):
listPreferences["Arts & Culture"] = 1
listCategory["Arts & Culture"] = 1
if (userInput == 2):
listPreferences["Entertainment"] = 1
listCategory["Entertainment"] = 1
if (userInput == 3):
listPreferences["Shopping"] = 1
listCategory["Shopping"] = 1
print("Do you want to add additional preferences\n0:No\n1:Yes")
print(listPreferences)
print(listCategory)
userInput = int(input())
if (userInput == 0):
i = 1
Expand All @@ -27,4 +27,4 @@ def main():


if __name__ == "__main__":
main()
main()
Empty file removed path.py
Empty file.
92 changes: 0 additions & 92 deletions places.py

This file was deleted.

22 changes: 22 additions & 0 deletions userpref.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# when user entered and exited a place.

# report duration after entry and exit
import main
from typing import List, Dict


class User:

"""
data: {category(food): [specific(middle eastern), Time]}
"""

preferences: List
data: Dict
in_home_country: bool

def __init__(self, preferences):
self.preferences = preferences
self.data = {}


0 comments on commit 336daa4

Please sign in to comment.