New Python Program: Simple Calculator

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

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

評価

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

調査の方向性

指定されたファイル simple_calculator.py を Python 3 のコマンドラインプログラムとして作成します。まずタスクの要件を確認し、次にサンプル入力、各算術演算、不正な入力、ゼロ除算を使って実行します。明確にプロンプトを表示し、正しい結果を返し、エラーを適切に処理できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

good first issue hacktoberfest

Hello Python enthusiasts! Let's enhance our repository with a Simple Calculator implemented in Python. This beginner-friendly task involves creating a command-line calculator that can perform basic arithmetic operations. This program will showcase fundamental input handling, arithmetic operations, and conditional statements in Python.

Tasks:

  • Implement functions for addition, subtraction, multiplication, and division.
  • Allow users to input two numbers and select an operation (+, -, *, /).
  • Perform the corresponding operation and display the result to the user.
  • Handle division by zero and invalid inputs gracefully.
  • Provide clear instructions and error messages for the users.

Guidelines:

  • Use Python 3.x for the program.
  • Implement functions to handle each arithmetic operation separately.
  • Ensure the calculator provides clear prompts and feedback to the user.
  • Include comments in your code to explain the logic and functionality.
  • Test the calculator with various inputs to ensure accurate calculations.

Example:

Welcome to the Simple Calculator!

Please enter the first number: 10
Please enter the second number: 5
Select operation (+, -, *, /): +

Result: 10 + 5 = 15

How to Contribute:

  1. Fork this repository.
  2. Create a new Python file for the Simple Calculator: simple_calculator.py.
  3. Write the Python program following the specified tasks and guidelines.
  4. Test the calculator thoroughly to ensure it functions correctly.
  5. Commit your changes: git commit -m "Add Simple Calculator program"
  6. Push to your branch: git push origin add-simple-calculator
  7. Open a pull request to this repository.

Your contribution will provide users with a handy tool for basic calculations. Thank you for creating this useful Python program for our repository!

主要言語
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 を短くまとめたダイジェスト。