Skip to content

🔹 Task 1: Bank Account Class You are asked to define a class called BankAccount that simulates an actual bank account. It must include: Attributes: account_holder (name as a string) balance (current balance in euros) Methods: deposit(amount) withdraw(amount) display_balance()

Notifications You must be signed in to change notification settings

Khaos-git815/BankSetting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

"# BankSetting"

/ 🔹 Task 1: Bank Account Class You are asked to define a class called BankAccount that simulates an actual bank account. It must include:

Attributes:

account_holder (name as a string)

balance (current balance in euros)

Methods:

deposit(amount)

withdraw(amount)

display_balance()

💡 Note: Only integer currency values (in €) are allowed for both deposits and withdrawals. You must enforce this restriction in your implementation.

/

About

🔹 Task 1: Bank Account Class You are asked to define a class called BankAccount that simulates an actual bank account. It must include: Attributes: account_holder (name as a string) balance (current balance in euros) Methods: deposit(amount) withdraw(amount) display_balance()

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages