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 ·