https://github.com/pkx8326/hello_world_calculator_with_python
This is a very simple calculator program with Python. It's a "Hello World" of a calculator. It demonstrates the use of functions that takes inputs and returns values.
https://github.com/pkx8326/hello_world_calculator_with_python
calculator function python simple
Last synced: 7 months ago
JSON representation
This is a very simple calculator program with Python. It's a "Hello World" of a calculator. It demonstrates the use of functions that takes inputs and returns values.
- Host: GitHub
- URL: https://github.com/pkx8326/hello_world_calculator_with_python
- Owner: pkx8326
- Created: 2022-01-29T11:09:23.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-30T06:02:04.000Z (over 3 years ago)
- Last Synced: 2025-01-12T20:30:06.371Z (9 months ago)
- Topics: calculator, function, python, simple
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hello_World_Calculator_with_Python
This is a very simple calculator program with Python. It's a "Hello World" of a calculator. It demonstrates the use of functions that takes inputs and returns values.The program lets the user enter a first number, then choose an operator, then enter a second number. The program then displays a result based on the two numbers and the operator chosen by the user.
✔️ The first version is a very simple calculator. The user inputs the two operands and chooses an operator. The user will be ask if he/she wants to perform another calculation. The user cannot carry over any calculation result to the next calculations.
✔️ The second version of the program is a bit more complicated. After each calculation, the user will have an option to perform the next calculations with the result of the current calculation, or to start everythin over from 0. The user can also choose to quit the program after each calculation.
This program was inspied by one of the lessons in the "100 Days of Code: The Complete Python Pro Bootcamp for 2022" by Angela Yu on Udemy.
You can find the course here: https://www.udemy.com/course/100-days-of-code/
The original ASCII art can be obtained here: https://replit.com/@appbrewery/calculator-final#art.py