Welcome, beginners! π In this challenge, we invite you to create a basic Python calculator. It's a fantastic way to apply your programming knowledge and have fun while doing it!
Task:
Create a Python script that performs basic arithmetic operations (addition, subtraction, multiplication, division) on two numbers. Your calculator should take user input for numbers and the operation to be performed.
Guidelines:
Use Python's input() function to receive user input.
Implement separate functions for each operation (addition, subtraction, multiplication, division).
Ensure your calculator handles division by zero gracefully.
Bonus: Add functionality for additional operations like square root or percentage calculations.
How to Contribute:
Fork this repository.
Create a new branch: git checkout -b calculator-challenge
Write your Python script in a file named calculator.py.
Test your calculator thoroughly to ensure it works as expected.
Commit your changes: git commit -m "Add Python calculator script"
Push to your branch: git push origin calculator-challenge
Open a pull request to this repository.
Feel free to ask questions if you're stuck, and don't worry about making mistakes β learning is all about experimenting! Happy coding! ππ
Welcome, beginners! π In this challenge, we invite you to create a basic Python calculator. It's a fantastic way to apply your programming knowledge and have fun while doing it!
Task: Create a Python script that performs basic arithmetic operations (addition, subtraction, multiplication, division) on two numbers. Your calculator should take user input for numbers and the operation to be performed.
Guidelines:
How to Contribute:
git checkout -b calculator-challenge
calculator.py
.git commit -m "Add Python calculator script"
git push origin calculator-challenge
Feel free to ask questions if you're stuck, and don't worry about making mistakes β learning is all about experimenting! Happy coding! ππ