Getting Started Challenge: Create a Simple Python Calculator
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 48/100
Research direction
Create calculator.py as specified in the issue. Start by implementing and manually running the input flow for two numbers and an operation. Done means addition, subtraction, multiplication, and division work, division by zero is handled gracefully, and the script accepts user input as described.
Written by the indexing model from the issue text.
Description
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! 🚀🐍
- Dominant language
- Python
- Stars
- 0
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from KALIIOWORK/basic_python_programs
-
good first issue hacktoberfest
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
KALIIOWORK/basic_python_programs#10 · 1 comment ·
-
good first issue hacktoberfest
Difficulty 3/5 1-2 days Newbie friendliness 45/100
KALIIOWORK/basic_python_programs#8 · 2 comments ·
-
good first issue hacktoberfest
Difficulty 2/5 1-3 hours Newbie friendliness 50/100
KALIIOWORK/basic_python_programs#6 · 1 comment ·
-
good first issue hacktoberfest
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
KALIIOWORK/basic_python_programs#5 · 1 comment ·
All issues in KALIIOWORK/basic_python_programs
Similar issues
-
Add: hunch Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
AbdelStark/awesome-typesafe#104 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
DiamondLightSource/dodal#2211 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
openml/openml-python#1749 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
sipyourdrink-ltd/bernstein#6191 ·