Skip to content

Commit

Permalink
Stuff is changed, created new class
Browse files Browse the repository at this point in the history
  • Loading branch information
wliu416 committed Feb 16, 2020
1 parent 003b92b commit 600b2f9
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 6 deletions.
12 changes: 6 additions & 6 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 Down
Empty file removed path.py
Empty file.
17 changes: 17 additions & 0 deletions userpref.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# when user entered and exited a place.

# report duration after entry and exit
import main

class User:

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

preferences: list
data: dict

def __init__(self, preferences):
self.preferences = preferences

0 comments on commit 600b2f9

Please sign in to comment.