Question: # Write your code here 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 =

# Write your code here

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)

Default Account

0.0

------------------------

Oliver

10000.0

------------------------

Liam

0.0

------------------------

Noah

400.0

------------------------

Sorry, Withdraw unsuccessful! The account balance after deducting withdraw amount is equal to or less than minimum.

------------------------

Sorry, Withdraw unsuccessful! The account balance after deducting withdraw amount is equal to or less than minimum.

------------------------

Withdraw successful! New balance is: 3071.0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!