Python Microproject 1
Python Microproject 1
ENGINEERING (POLYTECHNIC)
MICRO PROJECT
Academic year: 2021- 2022
CERTIFICATE
This is to certify that the following students -
6 OUTPUT 2
Step 2: Now we have to create a function deposit such that the amount of
money is taken by input using float and is then added to the balance. Then the
amount deposited will be displayed using the print statement in the next line as
shown in the code below:
Step 3: Just like step 2, we are going to create another function withdraw in which
we are going to take float input for the amount to get withdraw. We are using an if
condition here just to check if we have sufficient
balance available to perform a withdrawal of any amount from the account. If the
balance is not sufficient then our class will show “Insufficient balance”.
Step 4: Now we are going to create our final function which is display function.
It will display the final balance of the account after withdrawal and deposit.
Step 5: As a final step we are going to create an object of our class so that we can
call all the functions with that class to execute our code.
HERE IS THE MAIN CODE (SOURCE CODE)
OUTPUT
CONTENT USED IN THE SOURCE CODE
1] FUNCTION
2] CLASS AND OBJECT
3] INIT FUNCTION
1] FUNCTION:
SYNTAX:
2] CLASS AND OBJECT:
class ClassName:
# Statement-1
.
.
.
# Statement-N
SYNTAX OF OBJECT:
<object-name> = <class-name>(<arguments>)
3] INIT FUNCTION:
Annexure - I
MICRO-PROJECT PROPOSAL
Title of Micro-project:
1.0 Aims/Benefits of the Micro-project – Creating bank account class with deposit
and withdraw function.
2.0 Course Outcomes Addressed – We can write a program to create bank account
using the class and object and by using function.
3.0 Proposed Methodology – Firstly we have created class and then we have used
function, object and init () function in it.
Planned Name of
Sr. Planned
Details of Activity Finish responsible Team
No. Start Date
Date Members
Discussion and finalization
1
of topic
Preparation and submission
2
of abstract
3 Literature Review
4 Collection of data
5 Collection of data
Discussion and outline of
6
content
7 Formulation of content
8 Editing of content
9 Editing of content
10 Proof reading of content
11 Compilation of report
12 Compilation of report
13 Presentation
14 Seminar
15 Viva voce
Final submission of micro-
16
project
Sr. Name of
Specifications Quantity Remarks
No. Resource/material
1 LAPTOP 8GB RAM, 1
512GB SSD
2 NETWORK Wi-Fi 1
3 NOTES CLASS 1
NOTEBOOK
Annexure - II
MICRO-PROJECT REPORT
6.0 Rationale –
Creating bank account class with deposit and withdraw function.
Function: - https://www.geeksforgeeks.org/python-functions/
Sr. Name of
Specifications Quantity Remarks
No. Resource/material
3 NOTES CLASS 1
NOTEBOOK
ASHWINI SHINDE