0% found this document useful (0 votes)
4 views7 pages

Simple Calculator Project

Uploaded by

keerthiskbaby
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views7 pages

Simple Calculator Project

Uploaded by

keerthiskbaby
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Simple Calculator Project

Python Project for Class 11 CBSE


Introduction
• This project implements a Simple Calculator
using Python.

• Features:
• - Perform basic arithmetic operations.
• - User-friendly menu-driven interface.
• - Handles division by zero error gracefully.
Objectives
• - To demonstrate the use of conditional
statements.
• - To use functions for modular programming.
• - To make the project interactive with user
input.
Code Explanation
• 1. The code uses input() function to get user
input.
• 2. A while loop ensures the program runs until
the user exits.
• 3. Functions are created for addition,
subtraction, multiplication, and division.
Sample Code
• def add(a, b):
• return a + b

• def subtract(a, b):


• return a - b

• def multiply(a, b):


• return a * b
Demo Output
• - User is prompted to select an operation.
• - Performs the chosen operation based on
input.
• - Displays the result or appropriate error
message.
Conclusion
• This project is an excellent way to
demonstrate Python basics such as:
• - Conditional Statements
• - Loops
• - Functions
• It also helps understand user input handling
and basic error checking.

You might also like