First, a little trick: See this thread for a trick to paste your code in the forum and have it remain indented and formatted!
Now on to your code… You are missing an important part: You are not defining the
__init__() function anywhere, as prescribed in the instructions and that is why you are running into problems.
Here’s an example of what your code should look like:
printable = "yes"
def __init__(self, transport, valid, price):
self.transport = transport
self.valid = valid
self.price = price
my_ticket = Ticket("Bus", "3 days", 16)
Now read the instructions again and see the hint of 5/11 and you should be well on your way to the next exercise!