Getting Started Challenge: Create a Simple Python Calculator
まだ誰も着手していません。
評価
調査の方向性
issue に記載されているとおりに calculator.py を作成します。まず、2つの数値と1つの演算に対する入力フローを実装し、手動で実行します。加算、減算、乗算、除算が動作し、ゼロによる除算が適切に処理され、スクリプトが説明どおりにユーザー入力を受け付ければ完了です。
索引モデルが 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 ·