Python Using Databases in Python Our Diary App OrderedDict Practice

Emily Strobl
Emily Strobl
5,113 Points


keep getting SyntaxtError
from collections import OrderedDict

menu = OrderedDict([
    ('n', new challenge),
    ('s', new step),
    ('d', delete a challenge),
    ('e', edit a challenge),
## Menu Items:
# 'n', 'new challenge'
# 's', 'new step'
# 'd', 'delete a challenge'
# 'e', 'edit a challenge'

1 Answer

Your values should be enclosed in quotes like shown in the comments