###
### Author: ???
### Description: ???
###

import webbrowser

def get_content():
    ''' Implement'''

def print_inventory(inventory):
    ''' Implement'''

def print_belongings(curr_money, bought_items):
    ''' Implement'''

def add_to_wallet(curr_money, money):
    ''' Implement'''

def buy_item(money, inventory, bought_items, buying):
    ''' Implement'''

def return_item(inventory, bought_items, returning):
    ''' Implement'''

def view_item_on_web(inventory, item_name):
    ''' Implement'''

def main():
    
    # The inventory should be a dictionary mapping product name (string) to tuples.
    # The tuples will be of length two - the first element being the item's price (int)
    # and the second being the item's Amazon ID.
    inventory = get_content()
    
    # Keeps track of items bought by user. 
    # Key is the item name and value is the number of those items that have been bought.
    belongings = {}

    print("\n------ Welcome to Amayzeon! ------")
    balance = 100

    while True:
        user_input = input("What would you like to do?\n")
        if user_input.startswith('buy'):
            ''' For you to implement! '''
        elif user_input.startswith('return'):
            ''' For you to implement! '''
        elif user_input.startswith('add'):
            ''' For you to implement! '''
        elif user_input.startswith('view'):
            ''' For you to implement! '''
        elif user_input == 'belongings':
            print_belongings(balance, belongings)
        elif user_input == 'inventory':
            print_inventory(inventory)
        elif user_input == 'exit':
            return
        else:
            print("Huh?")

main()
