What is the correct syntax for defining an __init__() method that takes no parameters?

  • class __init__(self):
    pass
  • def __init__():
    pass
  • class __init__():
    pass
  • def __init__(self):
    pass
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Leave a Comment

Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Send this to a friend