Skip to content

GermmyKapil/Calculator-PLP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿงฎ Basic Python Calculator

This is a beginner-friendly Python program that performs basic arithmetic operations based on user input.

๐Ÿ“Œ Features

  • Accepts two numbers from the user
  • Supports:
    • Addition (+)
    • Subtraction (-)
    • Multiplication (*)
    • Division (/)
  • Handles division by zero

๐Ÿš€ How to Run

  1. Make sure you have Python installed

  2. Clone this repo:

    git clone https://github.com/GermmyKapil/Calculator-PLP/new.git
    cd calculator-plp
    
  3. Run the program: python calculator.py

  4. ๐Ÿ’ก Example Output

Enter the first number: 10
Enter the second number: 5
Choose an operation (+, -, *, /): *
Result: 10 * 5 = 50

๐Ÿ“š What I Learned User input handling

Data types (float, str)

Basic conditionals (if, elif, else)

String formatting in Python

๐Ÿ› ๏ธ Tech Used Python 3.x

๐Ÿ‘ค Author Germano Katalahali (https://github.com/GermmyKapil) [Germano Katalahali]

Feel free to fork or contribute if you have fun ideas!


โœ… Next Steps:

  1. Create a new file named README.md in your project folder.
  2. Paste the markdown content above.
  3. Save the file.
  4. Push it to GitHub:
git add README.md
git commit -m "Add README file"
git push origin main


About

Python Calculator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages