Build an Email Simulator - Step 8

Tell us what’s happening:

im getting a test error that is asking me to call the mark_as_read method and for me to print the read attribute despite me doing so unless there is something im missing

Your code so far

class Email:
    def __init__(self, sender, receiver, subject, body):
        self.sender = sender
        self.receiver = receiver
        self.subject = subject
        self.body = body
        self.read = False

    def mark_as_read(self):
        self.read = True


# User Editable Region

email_obj = Email('alice@example.com', 'bob@example.com', 'Hello', 'Hi Bob!')
print(email_obj.sender)
print(email_obj.subject)
print(email_obj.read)
print(email_obj.mark_as_read())
print(email_obj.read)


# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36

Challenge Information:

Build an Email Simulator - Step 8

Use the method on the existing Email object email_obj to change the status.

Does not say anything about printing here