Build an Email Simulator - Step 15

Tell us what’s happening:

My code isn’t working. Can someone help me with this?

Step 15 requires me to append a method to an empty list. How can I fix my syntax?

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

class User:
    def __init__(self, name):
        self.name = name
        self.inbox = Inbox()

    def send_email(self, receiver, subject, body):
        email = Email(sender=self, receiver=receiver, subject=subject, body=body)


# User Editable Region

class Inbox:
    def __init__(self):
        self.emails = []
    def receive_email(self, email):
        self.email = [].append() 


# 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/146.0.0.0 Safari/537.36

Challenge Information:

Build an Email Simulator - Step 15

please read carefully the instructions about what you need to do

Within the method body, add the email to the emails list using the append method.