Getting Started Challenge: Create a Simple Python Calculator
还没有人认领这个 Issue。
评估
调研方向
按照 issue 中的说明创建 calculator.py。首先实现并手动运行针对两个数字和一个运算的输入流程。加法、减法、乘法和除法均可正常工作,能够妥善处理除以零的情况,并且脚本能按描述接受用户输入,即视为完成。
由索引模型根据 Issue 内容生成。
描述
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! 🚀🐍
- 主要语言
- Python
- 星标
- 0
- 派生
- 9
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
KALIIOWORK/basic_python_programs 的其他 Issue
-
good first issue hacktoberfest
难度 2/5 1-3 小时 新手友好度 72/100
KALIIOWORK/basic_python_programs#10 · 1 条评论 ·
-
good first issue hacktoberfest
难度 3/5 1-2 天 新手友好度 45/100
KALIIOWORK/basic_python_programs#8 · 2 条评论 ·
-
good first issue hacktoberfest
难度 2/5 1-3 小时 新手友好度 50/100
KALIIOWORK/basic_python_programs#6 · 1 条评论 ·
-
good first issue hacktoberfest
难度 2/5 1-3 小时 新手友好度 55/100
KALIIOWORK/basic_python_programs#5 · 1 条评论 ·
查看 KALIIOWORK/basic_python_programs 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 84/100
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 86/100
-
🐛 Bug 🔔 Pending processing
难度 2/5 1-3 小时 新手友好度 84/100
jumpserver/jumpserver#17584 ·