Assignment1.py
def chooseLevel(levels):
    '''
    Given the levels dictionary, will parse through the key values (THEMES) and print them for the user to 
    select from. The user will then choose one of the printed themes for the session. Will check to see 
    if the chosen theme (the one the user entered) is valid.

    Para:
            levels: dictionary
    
    Returns:
            theme: string
    '''
    print('\nThemes to select from:')
    for key, value in levels.items():
        print('- {}'.format(key))
    theme = input('Please pick a theme from the list above: ')
    while theme not in levels:
        theme = input('Invalid entry. Please pick a theme from the list above: ')

    return theme

    Given the levels dictionary, will parse through the key values (THEMES) and print them for the user to 
    select from. The user will then choose one of the printed themes for the session. Will check to see 
    if the chosen theme (the one the user entered) is valid.

    Para:
            levels: dictionary
    
    Returns:
            theme: string
    
Given the levels dictionary, will parse through the key values (THEMES) and print them for the user to
select from. The user will then choose one of the printed themes for the session. Will check to see
if the chosen theme (the one the user entered) is valid.

dictionary
Given the levels dictionary will parse through the key values ( THEMES ) and print them for the user to select from . The user will then choose one of the printed themes for the session . Will check to see if the chosen theme ( the one the user entered ) is valid . dictionary
def chooseLevel(levels):
    print('\nThemes to select from:')
    for key, value in levels.items():
        print('- {}'.format(key))
    theme = input('Please pick a theme from the list above: ')
    while theme not in levels:
        theme = input('Invalid entry. Please pick a theme from the list above: ')
    return theme
def chooseLevel ( levels ) : print ( '\nThemes to select from:' ) for key , value in levels . items ( ) : print ( '- {}' . format ( key ) ) theme = input ( 'Please pick a theme from the list above: ' ) while theme not in levels : theme = input ( 'Invalid entry. Please pick a theme from the list above: ' ) return theme
Given the levels dictionary, will parse through the key values (THEMES) and print them for the user to
select from.
Given the levels dictionary will parse through the key values ( THEMES ) and print them for the user to select from .
'''
    Given the levels dictionary, will parse through the key values (THEMES) and print them for the user to 
    select from. The user will then choose one of the printed themes for the session. Will check to see 
    if the chosen theme (the one the user entered) is valid.

    Para:
            levels: dictionary
    
    Returns:
            theme: string
    '''
None
theme
levels