486
class Box:
items = []
def __init__(self, item):
self.items.append(item)
b1 = Box("A")
b2 = Box("B")
b1.items = ["C"]
print(b1.items)
print(b2.items)20 Jun, 11:35
Chat for yapping the latest topics and some project show case @FORCODERR π₯ @firaflash π¨βπ» curious dev
Show moreclass Box:
items = []
def __init__(self, item):
self.items.append(item)
b1 = Box("A")
b2 = Box("B")
b1.items = ["C"]
print(b1.items)
print(b2.items)pnpm build
command and having no type mismatch errors on the first try π€πΌ