Sunday 9:45 Python Homework 01.20.
16097
post-template-default,single,single-post,postid-16097,single-format-standard,bridge-core-3.0.6,qi-blocks-1.0.9,qodef-gutenberg--no-touch,qodef-qi--no-touch,qi-addons-for-elementor-1.5.7,qode-page-transition-enabled,ajax_fade,page_not_loaded,,qode-theme-ver-29.3,qode-theme-bridge,disabled_footer_bottom,qode_header_in_grid,wpb-js-composer js-comp-ver-6.10.0,vc_responsive,elementor-default,elementor-kit-21700

Sunday 9:45 Python Homework 01.20.

Sunday 9:45 Python Homework 01.20.

Question:

Make a class definition for a  BankAccount. It should have attributes for :

– its name (a string),
– account number (a string or integer),
– and balance (a float).

It should have methods to:

– make deposits with displaying the balance,
– and make withdrawals with displaying the balance.


Hint:

No Comments

Sorry, the comment form is closed at this time.