Build an Email Simulator - Step 15

Tell us what’s happening:

It appears there is no error so far, but I am not able to go forward. lease help.

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 Inbox:
    def __init__(self):
        self.emails = []

    def add_email(self, email):
        self.emails.append(email)


class User:
    def __init__(self, name):
        self.name = name
        self.inbox = Inbox()  # Each user gets an Inbox object

    def send_email(self, receiver, subject, body):
        # Create the email object
        email = Email(
            sender=self, 
            receiver=receiver, 
            subject=subject, 
            body=body
        )
        
# User Editable Region
        
class Inbox:
    def receive_email(self, email):
        self.emails.append(email)
      



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

Challenge Information:

Build an Email Simulator - Step 15

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/workshop-email-simulator/68b9366fae8b13c1278761b1.md at main · freeCodeCamp/freeCodeCamp · GitHub

Hmm, in the code above there are two declarations of the Inbox class. That might be reason why tests don’t pass.