New Python Program: Simple Calculator
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 50/100
Rechercherichtung
Erstelle die benannte Datei simple_calculator.py als ein Python-3-Kommandozeilenprogramm. Überprüfe zunächst die Aufgabenanforderungen und führe es dann mit den Beispiel-Eingaben, jeder arithmetischen Operation, ungültigen Eingaben und einer Division durch null aus. Die Aufgabe ist abgeschlossen, wenn das Programm klare Eingabeaufforderungen anzeigt, korrekte Ergebnisse zurückgibt und Fehler ordnungsgemäß behandelt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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:
- Fork this repository.
- Create a new Python file for the Simple Calculator:
simple_calculator.py. - Write the Python program following the specified tasks and guidelines.
- Test the calculator thoroughly to ensure it functions correctly.
- Commit your changes:
git commit -m "Add Simple Calculator program" - Push to your branch:
git push origin add-simple-calculator - 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!
- Vorherrschende Sprache
- Python
- Sterne
- 0
- Forks
- 9
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus KALIIOWORK/basic_python_programs
-
good first issue hacktoberfest
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
KALIIOWORK/basic_python_programs#10 · 1 Kommentar ·
-
good first issue hacktoberfest
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
KALIIOWORK/basic_python_programs#8 · 2 Kommentare ·
-
good first issue hacktoberfest
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 55/100
KALIIOWORK/basic_python_programs#5 · 1 Kommentar ·
-
good first issue hacktoberfest
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 48/100
KALIIOWORK/basic_python_programs#1 · 2 Kommentare ·
Alle Issues in KALIIOWORK/basic_python_programs
Ähnliche Issues
-
from:qa priority:P2 reliability tech-debt
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
spec-kitty/spec-kitty#4874 ·
-
fix: inaccuracy ⚠️
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
uabrc/uabrc.github.io#1255 · 1 Kommentar ·
-
kind:bug needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
-
docs
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
ethereum-optimism/factory#64 ·