Python Basic Object-Oriented Python Welcome to OOP Creating a Panda Class

How to solve this

i can seem to make the correct code

panda.py
class Panda:
    species = 'Ailuropoda melanoleuca'
    food = 'bamboo'


    def __init__(self):
        self.is_hungry=is_hungry

1 Answer

Jassim Al-Hatem
Jassim Al-Hatem
19,543 Points
# insert your code here
class Panda:
    species = "Ailuropoda melanoleuca"
    food = "bamboo"

    def __init__(self):
        self.is_hungry = True

You have a little mistake. self.is_hungry should be set to True, not is_hungry.