├── README.md └── BASIC_CALCULATOR.py /README.md: -------------------------------------------------------------------------------- 1 | # Simple-Calculator 2 | 3 | My first Project 4 | 5 | pls support my Project 6 | -------------------------------------------------------------------------------- /BASIC_CALCULATOR.py: -------------------------------------------------------------------------------- 1 | import time 2 | 3 | 4 | print("Welcome to the simple calculation") 5 | time.sleep(1) 6 | 7 | print("additon -- 1") 8 | print("subration -- 2") 9 | print("multiply -- 3") 10 | print("division -- 4") 11 | time.sleep(2) 12 | 13 | def main(): 14 | 15 | Selection = input("Select any number for your calculation:") 16 | 17 | number_1 = int(input("Enter First number:")) 18 | number_2 = int(input("Enter Second number:")) 19 | 20 | 21 | if Selection == '1': 22 | print("Addition of your two number is ",number_1+number_2) 23 | 24 | elif Selection == '2': 25 | print("subration of your two number is ",number_1-number_2) 26 | 27 | elif Selection == '3': 28 | print("Multiply of your two number is ",number_1*number_2) 29 | 30 | elif Selection == '4': 31 | print("division of your two number is ",number_1/number_2) 32 | 33 | recalculation = input("Do You want to calculate Again ??? (yes/no) ").lower() 34 | if recalculation == "yes": 35 | main() 36 | else: 37 | print("bye") 38 | exit() 39 | time.sleep(5) 40 | main() 41 | --------------------------------------------------------------------------------