Python - Methods and Behavior Definition
Given this code, what will be the output?
class Item:
def __init__(self, name, quantity):
self.name = name
self.quantity = quantity
def restock(self, amount):
self.quantity += amount
item = Item("Pen", 10)
item.restock(5)
item.quantity = 3
print(item.quantity)