Skip to content

Enecode/Calculator-With-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Calculator-With-Python

The app is designed to help me understand Python functions and control flow statements.

How The App Was Developed

Functions

The app has four features. Each function performs the operations of addition, multiplication, subtraction, and division. example :

def add(first_number, second_number):
    answer = first_number + second_number
    print(str(first_number) + " + " + str(second_number) + " = " + str(answer) + "\n")

While-Loop

I was able to use the while loop to allow users to select their preferred operator (+, -, *, /) and enter the number to be calculated. The loop ends when the last option is chosen.

If statement

The if statement allows users to choose between options by using plus, minus, addition, or multiplication. Following that, the function is called.

About

Built a calculator with python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages