SyntaxFix
Write A Post
Hire A Developer
Questions
You need to pass the values of the dict into the Bike constructor before using like that. Or, see the namedtuple -- seems more in line with what you're trying to do.
Bike
namedtuple