Build an Email Simulator - Step 4

Tell us what’s happening:

Does anyone know what is going on here I cant get my code to pass

Your code so far

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

# User Editable Region

        self.body = body

    def email_obj('alice@example.com', 'bob@example.com', "Hello", 'Hi Bob!')

print(f"Sender: {email_obj.sender}")
print(f"Subject: {email_obj.subject}")

# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36

Challenge Information:

Build an Email Simulator - Step 4

Hi @edatema2009

You are not asked to define a function.

  1. Create an object using the function you created.
  2. You do not need to use f-strings, just print the values.

Happy coding

how do i go about creating an object using the function I dont understand

nevermind dont mind me I just looked back and figured it out

1 Like