Getting Started Challenge: Create a Simple Python Calculator

未關閉
#1 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
48/100
Issue 類型
功能
描述清晰度
描述清楚
活躍度
停滯
技術堆疊
python
領域
cli

研究方向

按照 issue 中的說明建立 calculator.py。首先實作並手動執行針對兩個數字和一個運算的輸入流程。加法、減法、乘法和除法皆可正常運作,能妥善處理除以零的情況,且指令碼能按照描述接受使用者輸入,即視為完成。

由索引模型根據 Issue 內容生成。

描述

good first issue hacktoberfest

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:

  1. Fork this repository.
  2. Create a new branch: git checkout -b calculator-challenge
  3. Write your Python script in a file named calculator.py.
  4. Test your calculator thoroughly to ensure it works as expected.
  5. Commit your changes: git commit -m "Add Python calculator script"
  6. Push to your branch: git push origin calculator-challenge
  7. 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

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

KALIIOWORK/basic_python_programs 的其他 Issue

查看 KALIIOWORK/basic_python_programs 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。