Page 1 of 1

Python Implement the design of the Account class so that the following output is produced: a1 = Account() print(a1.detai

Posted: Thu Jul 14, 2022 2:13 pm
by answerhappygod
Python
Implement the design of the Account class so that thefollowing output is produced:
a1 = Account()
print(a1.details())
print("------------------------")
a1.name = "Oliver"
a1.balance = 10000.0
print(a1.details())
print("------------------------")
a2 = Account("Liam")
print(a2.details())
print("------------------------")
a3 = Account("Noah",400)
print(a3.details())
print("------------------------")
a1.withdraw(6930)
print("------------------------")
a2.withdraw(600)
print("------------------------")
a1.withdraw(6929)