Self Is Just a Name
class Box:
def __init__(this, value):
this.value = value
def show(banana):
return banana.value
b = Box(42)
print(b.show())
What happens when this runs?
Sign in to answer questions and track your progress
Sign In