A curated list of good to know Python Snippets. Visit
Advertise with us

Python Multiple Choice Questions
Suppose B is a subclass of A, to invoke the __init__ method in A from B, what is the line of code you should write?
A. A.__init__(self)
B. B.__init__(self)
C. A.__init__(B)
D. B.__init__(A)
Show Answer

Please subscribe to get the latest articles in your mailbox.

DigitalOcean Referral Badge

Get a .COM for just $5.98!

© 2021-2022 Python Circle   Contact   Sponsor   Archive   Sitemap