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

Elpida Gkika
Elpida Gkika
2,989 Points

create an instance attribute in panda challenge [Solved]

Getting an assertion error when I run this code and not sure why. Any thoughts on what I need to change?

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

    def __init__(self):
        self.is_hungry= True
Elpida Gkika
Elpida Gkika
2,989 Points

Turns out I was missing a gap between the "is.hungry" and the equals sign in the last line.