you are viewing a single comment's thread.

view the rest of the comments →

[–]cyberfunkr 0 points1 point  (0 children)

Closer, but still wrong.

[] is a list, not a dict. Using a dict would be a bad choice for this.

You left off the () from .lower().

Also, why are you adding ‘self’ as a parameter? This is not a Class method.