Predict

Two Lanterns or One?

Objects behave a lot like lists when you assign them to new names. Think carefully!

class Lantern:
    def __init__(self, fuel):
        self.fuel = fuel

    def burn(self):
        self.fuel -= 1

a = Lantern(3)
b = Lantern(3)
c = a
a.burn()
c.burn()
print(a.fuel, b.fuel, c.fuel)

What does this program print?