Getting Started Challenge: Create a Simple Python Calculator

オープン
#1 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
python
領域
cli

調査の方向性

issue に記載されているとおりに calculator.py を作成します。まず、2つの数値と1つの演算に対する入力フローを実装し、手動で実行します。加算、減算、乗算、除算が動作し、ゼロによる除算が適切に処理され、スクリプトが説明どおりにユーザー入力を受け付ければ完了です。

索引モデルが 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. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

KALIIOWORK/basic_python_programs のほかの issue

KALIIOWORK/basic_python_programs の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。