How Python Builds Objects · Basics
How Python Builds Objects — Basics
12 practice questions on How Python Builds Objects. Every question is written from a specific moment in a real lecture, and after you answer it links to that exact timestamp so you can check it yourself.
What this pack asks
The free questions in this pack. Answer choices and explanations appear as you play.
A team's calendar library builds objects from a file with an alternate constructor: … Calling WorkCalendar.from_json("events.json") hands back a plain Calendar, not a WorkCalendar. What explains it?
Answer this one →A logging tweak adds a __new__ to a class, but the return statement gets dropped: … c = Config("a.ini") prints "creating", but c is None and never gets a path. Why?
Answer this one →
Written from lectures by mCoding. Not affiliated with or endorsed by any university, channel, creator or certification program.