SlideShare a Scribd company logo
Create a class in python called BankAccount with the following attributes:
Variables
balance <int>
transaction_history <list>
Methods
get_balance
set balance (balance)
get_transaction_history set_transaction_history (transaction_history)
get_avg_transaction deposit (amount)
withdraw (amount)
Modify this line on the top:
Ex. from your_py_file_name import BankAccount
Ex. from your_py_file_name import BankAccount from Lab5_Error_handling import
BankAccount Run the test file to check your answer! Below is the output: Creating the bank
account: Getting the average transactions (first tine) Error: No transactions have been made
Depositing money Error: Not greater than Depositing money You must enter a number
Withdrawing money You must enter a number Withdrawing money Error: Not greater than the
balance Getting the average transactions (second tine) 50.0 Balance: 200
Create a class in python called BankAccount with the following attribu.docx

More Related Content

Similar to Create a class in python called BankAccount with the following attribu.docx

Oracle cash management_Anne
Oracle cash management_AnneOracle cash management_Anne
Oracle cash management_Anne
anuraj-sandhu
 
Acme plus
Acme plusAcme plus
Acme plus
Prem Kumar S
 
CSC139 Chapter 9 Lab Assignments (1) Classes and Obj.docx
CSC139 Chapter 9 Lab Assignments (1) Classes and Obj.docxCSC139 Chapter 9 Lab Assignments (1) Classes and Obj.docx
CSC139 Chapter 9 Lab Assignments (1) Classes and Obj.docx
ruthannemcmullen
 
Rules to prepare the Trial balance.pdf
Rules to prepare the Trial balance.pdfRules to prepare the Trial balance.pdf
Rules to prepare the Trial balance.pdf
dyamagar2016
 
Getting Started With Valuate by REFM
Getting Started With Valuate by REFMGetting Started With Valuate by REFM
Getting Started With Valuate by REFM
Real Estate Financial Modeling
 
T4
T4T4
T4
lksoo
 
R12:Payment Process Request (PPR)
R12:Payment Process Request (PPR)R12:Payment Process Request (PPR)
R12:Payment Process Request (PPR)
lingaswamy vallapu
 
1-What are the opportunities and threats that could impact the org
1-What are the opportunities and threats that could impact the org1-What are the opportunities and threats that could impact the org
1-What are the opportunities and threats that could impact the org
AbbyWhyte974
 
1-What are the opportunities and threats that could impact the org
1-What are the opportunities and threats that could impact the org1-What are the opportunities and threats that could impact the org
1-What are the opportunities and threats that could impact the org
MartineMccracken314
 
peachtree-accounting.pdf
peachtree-accounting.pdfpeachtree-accounting.pdf
peachtree-accounting.pdf
AmanGemechu1
 
Check printing in_r12
Check printing in_r12Check printing in_r12
Check printing in_r12
Rajesh Khatri
 
PayPal Dev Con 2009 Driving Business
PayPal Dev Con 2009 Driving BusinessPayPal Dev Con 2009 Driving Business
PayPal Dev Con 2009 Driving Business
Aduci
 
Recording Transactions
Recording TransactionsRecording Transactions
Recording Transactions
Alamgir Alwani
 
Quick books tutorials
Quick books tutorialsQuick books tutorials
Quick books tutorials
Awais Aftab
 
Account
AccountAccount
Account
SuhaBaswaid
 
Lo48
Lo48Lo48
Lo48
lksoo
 
10
1010
10
1010
T3
T3T3
T3
lksoo
 
Comp 220 ilab 3 of 7
Comp 220 ilab 3 of 7Comp 220 ilab 3 of 7
Comp 220 ilab 3 of 7
solutionjug4
 

Similar to Create a class in python called BankAccount with the following attribu.docx (20)

Oracle cash management_Anne
Oracle cash management_AnneOracle cash management_Anne
Oracle cash management_Anne
 
Acme plus
Acme plusAcme plus
Acme plus
 
CSC139 Chapter 9 Lab Assignments (1) Classes and Obj.docx
CSC139 Chapter 9 Lab Assignments (1) Classes and Obj.docxCSC139 Chapter 9 Lab Assignments (1) Classes and Obj.docx
CSC139 Chapter 9 Lab Assignments (1) Classes and Obj.docx
 
Rules to prepare the Trial balance.pdf
Rules to prepare the Trial balance.pdfRules to prepare the Trial balance.pdf
Rules to prepare the Trial balance.pdf
 
Getting Started With Valuate by REFM
Getting Started With Valuate by REFMGetting Started With Valuate by REFM
Getting Started With Valuate by REFM
 
T4
T4T4
T4
 
R12:Payment Process Request (PPR)
R12:Payment Process Request (PPR)R12:Payment Process Request (PPR)
R12:Payment Process Request (PPR)
 
1-What are the opportunities and threats that could impact the org
1-What are the opportunities and threats that could impact the org1-What are the opportunities and threats that could impact the org
1-What are the opportunities and threats that could impact the org
 
1-What are the opportunities and threats that could impact the org
1-What are the opportunities and threats that could impact the org1-What are the opportunities and threats that could impact the org
1-What are the opportunities and threats that could impact the org
 
peachtree-accounting.pdf
peachtree-accounting.pdfpeachtree-accounting.pdf
peachtree-accounting.pdf
 
Check printing in_r12
Check printing in_r12Check printing in_r12
Check printing in_r12
 
PayPal Dev Con 2009 Driving Business
PayPal Dev Con 2009 Driving BusinessPayPal Dev Con 2009 Driving Business
PayPal Dev Con 2009 Driving Business
 
Recording Transactions
Recording TransactionsRecording Transactions
Recording Transactions
 
Quick books tutorials
Quick books tutorialsQuick books tutorials
Quick books tutorials
 
Account
AccountAccount
Account
 
Lo48
Lo48Lo48
Lo48
 
10
1010
10
 
10
1010
10
 
T3
T3T3
T3
 
Comp 220 ilab 3 of 7
Comp 220 ilab 3 of 7Comp 220 ilab 3 of 7
Comp 220 ilab 3 of 7
 

More from SeanuO9Payneq

d) Find the expected value of Y- 17- We break a stick of unit length i.docx
d) Find the expected value of Y- 17- We break a stick of unit length i.docxd) Find the expected value of Y- 17- We break a stick of unit length i.docx
d) Find the expected value of Y- 17- We break a stick of unit length i.docx
SeanuO9Payneq
 
Create c C program to interface with ADC_DISPLAY on PC via USB connect.docx
Create c C program to interface with ADC_DISPLAY on PC via USB connect.docxCreate c C program to interface with ADC_DISPLAY on PC via USB connect.docx
Create c C program to interface with ADC_DISPLAY on PC via USB connect.docx
SeanuO9Payneq
 
Customer Knowledge can include- A- Customer Organizational Knowledge-.docx
Customer Knowledge can include- A- Customer Organizational Knowledge-.docxCustomer Knowledge can include- A- Customer Organizational Knowledge-.docx
Customer Knowledge can include- A- Customer Organizational Knowledge-.docx
SeanuO9Payneq
 
D) Microscopic Anatomy of Compact Bone Match each term with the approp.docx
D) Microscopic Anatomy of Compact Bone Match each term with the approp.docxD) Microscopic Anatomy of Compact Bone Match each term with the approp.docx
D) Microscopic Anatomy of Compact Bone Match each term with the approp.docx
SeanuO9Payneq
 
Cybersecurity is critical to protecting an organizations infrastructur.docx
Cybersecurity is critical to protecting an organizations infrastructur.docxCybersecurity is critical to protecting an organizations infrastructur.docx
Cybersecurity is critical to protecting an organizations infrastructur.docx
SeanuO9Payneq
 
D- X-linked inheritance 1- Red-green colorblindness is a recessive X-l.docx
D- X-linked inheritance 1- Red-green colorblindness is a recessive X-l.docxD- X-linked inheritance 1- Red-green colorblindness is a recessive X-l.docx
D- X-linked inheritance 1- Red-green colorblindness is a recessive X-l.docx
SeanuO9Payneq
 
Current Attempt in Progress The following selected information is for.docx
Current Attempt in Progress The following selected information is for.docxCurrent Attempt in Progress The following selected information is for.docx
Current Attempt in Progress The following selected information is for.docx
SeanuO9Payneq
 
Create a phylogenetic tree using morphological traits of the following.docx
Create a phylogenetic tree using morphological traits of the following.docxCreate a phylogenetic tree using morphological traits of the following.docx
Create a phylogenetic tree using morphological traits of the following.docx
SeanuO9Payneq
 
Current and Deferred Taxes Accounting principles require us to recogni.docx
Current and Deferred Taxes Accounting principles require us to recogni.docxCurrent and Deferred Taxes Accounting principles require us to recogni.docx
Current and Deferred Taxes Accounting principles require us to recogni.docx
SeanuO9Payneq
 
Create a class called TempConverter Write the main() method within the.docx
Create a class called TempConverter Write the main() method within the.docxCreate a class called TempConverter Write the main() method within the.docx
Create a class called TempConverter Write the main() method within the.docx
SeanuO9Payneq
 
Cows have been bred by farmers over centuries to produce more milk- So.docx
Cows have been bred by farmers over centuries to produce more milk- So.docxCows have been bred by farmers over centuries to produce more milk- So.docx
Cows have been bred by farmers over centuries to produce more milk- So.docx
SeanuO9Payneq
 
Convert 29-5- to a fraction in simplest form and a decimal- Fraction-.docx
Convert 29-5- to a fraction in simplest form and a decimal- Fraction-.docxConvert 29-5- to a fraction in simplest form and a decimal- Fraction-.docx
Convert 29-5- to a fraction in simplest form and a decimal- Fraction-.docx
SeanuO9Payneq
 
convert this the relational model to a UML diagram ( draw a UML diagra.docx
convert this the relational model to a UML diagram ( draw a UML diagra.docxconvert this the relational model to a UML diagram ( draw a UML diagra.docx
convert this the relational model to a UML diagram ( draw a UML diagra.docx
SeanuO9Payneq
 
Cornucopians are people who believe that the sheer number of people is.docx
Cornucopians are people who believe that the sheer number of people is.docxCornucopians are people who believe that the sheer number of people is.docx
Cornucopians are people who believe that the sheer number of people is.docx
SeanuO9Payneq
 
Create a project to compute your checking account balance- Form- Inclu.docx
Create a project to compute your checking account balance- Form- Inclu.docxCreate a project to compute your checking account balance- Form- Inclu.docx
Create a project to compute your checking account balance- Form- Inclu.docx
SeanuO9Payneq
 
Create a dichotomous key for the following arthropods with 13 possible.docx
Create a dichotomous key for the following arthropods with 13 possible.docxCreate a dichotomous key for the following arthropods with 13 possible.docx
Create a dichotomous key for the following arthropods with 13 possible.docx
SeanuO9Payneq
 
Create a Data Flow Diagram (DFD) on one of the three scenarios listed.docx
Create a Data Flow Diagram (DFD) on one of the three scenarios listed.docxCreate a Data Flow Diagram (DFD) on one of the three scenarios listed.docx
Create a Data Flow Diagram (DFD) on one of the three scenarios listed.docx
SeanuO9Payneq
 
could you plase help me doing an ER diagram for the HU mentor program.docx
could you plase help me doing an ER diagram for the HU mentor program.docxcould you plase help me doing an ER diagram for the HU mentor program.docx
could you plase help me doing an ER diagram for the HU mentor program.docx
SeanuO9Payneq
 
Convert the following ER model to a dimensional model to evaluate the.docx
Convert the following ER model to a dimensional model to evaluate the.docxConvert the following ER model to a dimensional model to evaluate the.docx
Convert the following ER model to a dimensional model to evaluate the.docx
SeanuO9Payneq
 
Constuct a trequency datrbution and a relative frequency histogram bor.docx
Constuct a trequency datrbution and a relative frequency histogram bor.docxConstuct a trequency datrbution and a relative frequency histogram bor.docx
Constuct a trequency datrbution and a relative frequency histogram bor.docx
SeanuO9Payneq
 

More from SeanuO9Payneq (20)

d) Find the expected value of Y- 17- We break a stick of unit length i.docx
d) Find the expected value of Y- 17- We break a stick of unit length i.docxd) Find the expected value of Y- 17- We break a stick of unit length i.docx
d) Find the expected value of Y- 17- We break a stick of unit length i.docx
 
Create c C program to interface with ADC_DISPLAY on PC via USB connect.docx
Create c C program to interface with ADC_DISPLAY on PC via USB connect.docxCreate c C program to interface with ADC_DISPLAY on PC via USB connect.docx
Create c C program to interface with ADC_DISPLAY on PC via USB connect.docx
 
Customer Knowledge can include- A- Customer Organizational Knowledge-.docx
Customer Knowledge can include- A- Customer Organizational Knowledge-.docxCustomer Knowledge can include- A- Customer Organizational Knowledge-.docx
Customer Knowledge can include- A- Customer Organizational Knowledge-.docx
 
D) Microscopic Anatomy of Compact Bone Match each term with the approp.docx
D) Microscopic Anatomy of Compact Bone Match each term with the approp.docxD) Microscopic Anatomy of Compact Bone Match each term with the approp.docx
D) Microscopic Anatomy of Compact Bone Match each term with the approp.docx
 
Cybersecurity is critical to protecting an organizations infrastructur.docx
Cybersecurity is critical to protecting an organizations infrastructur.docxCybersecurity is critical to protecting an organizations infrastructur.docx
Cybersecurity is critical to protecting an organizations infrastructur.docx
 
D- X-linked inheritance 1- Red-green colorblindness is a recessive X-l.docx
D- X-linked inheritance 1- Red-green colorblindness is a recessive X-l.docxD- X-linked inheritance 1- Red-green colorblindness is a recessive X-l.docx
D- X-linked inheritance 1- Red-green colorblindness is a recessive X-l.docx
 
Current Attempt in Progress The following selected information is for.docx
Current Attempt in Progress The following selected information is for.docxCurrent Attempt in Progress The following selected information is for.docx
Current Attempt in Progress The following selected information is for.docx
 
Create a phylogenetic tree using morphological traits of the following.docx
Create a phylogenetic tree using morphological traits of the following.docxCreate a phylogenetic tree using morphological traits of the following.docx
Create a phylogenetic tree using morphological traits of the following.docx
 
Current and Deferred Taxes Accounting principles require us to recogni.docx
Current and Deferred Taxes Accounting principles require us to recogni.docxCurrent and Deferred Taxes Accounting principles require us to recogni.docx
Current and Deferred Taxes Accounting principles require us to recogni.docx
 
Create a class called TempConverter Write the main() method within the.docx
Create a class called TempConverter Write the main() method within the.docxCreate a class called TempConverter Write the main() method within the.docx
Create a class called TempConverter Write the main() method within the.docx
 
Cows have been bred by farmers over centuries to produce more milk- So.docx
Cows have been bred by farmers over centuries to produce more milk- So.docxCows have been bred by farmers over centuries to produce more milk- So.docx
Cows have been bred by farmers over centuries to produce more milk- So.docx
 
Convert 29-5- to a fraction in simplest form and a decimal- Fraction-.docx
Convert 29-5- to a fraction in simplest form and a decimal- Fraction-.docxConvert 29-5- to a fraction in simplest form and a decimal- Fraction-.docx
Convert 29-5- to a fraction in simplest form and a decimal- Fraction-.docx
 
convert this the relational model to a UML diagram ( draw a UML diagra.docx
convert this the relational model to a UML diagram ( draw a UML diagra.docxconvert this the relational model to a UML diagram ( draw a UML diagra.docx
convert this the relational model to a UML diagram ( draw a UML diagra.docx
 
Cornucopians are people who believe that the sheer number of people is.docx
Cornucopians are people who believe that the sheer number of people is.docxCornucopians are people who believe that the sheer number of people is.docx
Cornucopians are people who believe that the sheer number of people is.docx
 
Create a project to compute your checking account balance- Form- Inclu.docx
Create a project to compute your checking account balance- Form- Inclu.docxCreate a project to compute your checking account balance- Form- Inclu.docx
Create a project to compute your checking account balance- Form- Inclu.docx
 
Create a dichotomous key for the following arthropods with 13 possible.docx
Create a dichotomous key for the following arthropods with 13 possible.docxCreate a dichotomous key for the following arthropods with 13 possible.docx
Create a dichotomous key for the following arthropods with 13 possible.docx
 
Create a Data Flow Diagram (DFD) on one of the three scenarios listed.docx
Create a Data Flow Diagram (DFD) on one of the three scenarios listed.docxCreate a Data Flow Diagram (DFD) on one of the three scenarios listed.docx
Create a Data Flow Diagram (DFD) on one of the three scenarios listed.docx
 
could you plase help me doing an ER diagram for the HU mentor program.docx
could you plase help me doing an ER diagram for the HU mentor program.docxcould you plase help me doing an ER diagram for the HU mentor program.docx
could you plase help me doing an ER diagram for the HU mentor program.docx
 
Convert the following ER model to a dimensional model to evaluate the.docx
Convert the following ER model to a dimensional model to evaluate the.docxConvert the following ER model to a dimensional model to evaluate the.docx
Convert the following ER model to a dimensional model to evaluate the.docx
 
Constuct a trequency datrbution and a relative frequency histogram bor.docx
Constuct a trequency datrbution and a relative frequency histogram bor.docxConstuct a trequency datrbution and a relative frequency histogram bor.docx
Constuct a trequency datrbution and a relative frequency histogram bor.docx
 

Recently uploaded

The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
TechSoup
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
NgcHiNguyn25
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Denish Jangid
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
Wahiba Chair Training & Consulting
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
iammrhaywood
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Diana Rendina
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 

Recently uploaded (20)

The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 

Create a class in python called BankAccount with the following attribu.docx

  • 1. Create a class in python called BankAccount with the following attributes: Variables balance <int> transaction_history <list> Methods get_balance set balance (balance) get_transaction_history set_transaction_history (transaction_history) get_avg_transaction deposit (amount) withdraw (amount) Modify this line on the top: Ex. from your_py_file_name import BankAccount Ex. from your_py_file_name import BankAccount from Lab5_Error_handling import BankAccount Run the test file to check your answer! Below is the output: Creating the bank account: Getting the average transactions (first tine) Error: No transactions have been made Depositing money Error: Not greater than Depositing money You must enter a number Withdrawing money You must enter a number Withdrawing money Error: Not greater than the balance Getting the average transactions (second tine) 50.0 Balance: 200