What will this print Class Account () :
def_init_(self) :
self. money=0
def deposit (self, amount) :
self. money+=amount
account=Account ()
money=100
account. deposit (50)
print (money, account. money)
Share
What will this print Class Account () :
def_init_(self) :
self. money=0
def deposit (self, amount) :
self. money+=amount
account=Account ()
money=100
account. deposit (50)
print (money, account. money)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
0 Replies