Python Basics: Building Systems With Classes (Quiz)
Bartosz Zaczyński RP Team on Nov. 4, 2023
It does return True
, and that’s what the quiz question expects. Are you getting a different result when you run the code?
Become a Member to join the conversation.
CB on Nov. 3, 2023
Unsure why
isinstance(jack, Dog)
returnsFalse
.jack
is in theBulldog
class which is a subclass ofDog
, so should returnTrue
?