I've got plants

Report a typo

The class Cactus is a child of the class Plant:

class Plant:
    def __init__(self, spec):
        self.spec = spec


class Cactus(Plant):
    pass

We've created instances of these classes:

basil = Plant("Ocimum basilicum")

opuntia = Cactus("Opuntia vulgaris")

Which type checks will return True?

Select one or more options from the list
___

Create a free account to access the full topic