From b8cc5aff03815ccbbb976b939b8188790f71e8bf Mon Sep 17 00:00:00 2001 From: Mirko Siebert Date: Thu, 9 Oct 2025 08:15:34 +0200 Subject: [PATCH] Erste Python Versuche nach Video --- Taxirechner.py | 17 +++++++++++++++++ ToDo-List.py | 10 ++++++++++ currency-calculator.py | 5 +++++ main.py | 4 ++++ newsletter.py | 12 ++++++++++++ readme.md | 1 - 6 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 Taxirechner.py create mode 100644 ToDo-List.py create mode 100644 currency-calculator.py create mode 100644 main.py create mode 100644 newsletter.py delete mode 100644 readme.md diff --git a/Taxirechner.py b/Taxirechner.py new file mode 100644 index 0000000..2a735cb --- /dev/null +++ b/Taxirechner.py @@ -0,0 +1,17 @@ +print(""" +████████╗ █████╗ ██╗ ██╗██╗███████╗██████╗ ███████╗ ██████╗██╗ ██╗███████╗██████╗ +╚══██╔══╝██╔══██╗██║ ██╔╝██║██╔════╝██╔══██╗██╔════╝██╔════╝██║ ██║██╔════╝██╔══██╗ + ██║ ███████║█████╔╝ ██║█████╗ ██████╔╝█████╗ ██║ ███████║█████╗ ██████╔╝ + ██║ ██╔══██║██╔═██╗ ██║██╔══╝ ██╔═══╝ ██╔══╝ ██║ ██╔══██║██╔══╝ ██╔══██╗ + ██║ ██║ ██║██║ ██╗██║███████╗██║ ███████╗╚██████╗██║ ██║███████╗██║ ██║ + ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚══════╝╚═╝ ╚══════╝ ╚═════╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ + + T A X I P R E I S R E C H N E R +""") +#print("Willkommen zum kleinen Taxirechner!") +print("") +Kilometer = input("Wieviele Kilometer bist du mit dem Taxi gefahren? ") +Preis = 5.70 + 2.5 * float(Kilometer) +print("") +print(f"Dann musst du {Preis}€ bezahlen.") +print("Zum beenden einfach Enter drücken") \ No newline at end of file diff --git a/ToDo-List.py b/ToDo-List.py new file mode 100644 index 0000000..1ccacef --- /dev/null +++ b/ToDo-List.py @@ -0,0 +1,10 @@ +todos = [] + +newitem = input("Was möchtest du hinzufügen? ") +todos.append(newitem) +print("Meine Liste hat die folgenden Elemente: ") + +for todo in todos: + print(f"- {todo}") + +print("Programm beendet") \ No newline at end of file diff --git a/currency-calculator.py b/currency-calculator.py new file mode 100644 index 0000000..8017419 --- /dev/null +++ b/currency-calculator.py @@ -0,0 +1,5 @@ +print("Moin zum Währungsrechner!") +print("") +euro = input("Bitte Betrag in Euro eingeben: ") +dollar = 1.07 * float(euro) +print(f"Der Betrag entspricht {dollar} Dollar") \ No newline at end of file diff --git a/main.py b/main.py new file mode 100644 index 0000000..b1136a1 --- /dev/null +++ b/main.py @@ -0,0 +1,4 @@ +print("Hello world!") +name = input("Wie ist dein Name? ") +print(f"Grüß dich, {name}") +input("Bitte Enter drücken ...") \ No newline at end of file diff --git a/newsletter.py b/newsletter.py new file mode 100644 index 0000000..9c047f3 --- /dev/null +++ b/newsletter.py @@ -0,0 +1,12 @@ +name = input("Gib den Namen des Adressaten ein: ") +Absender = input("Gib den Absender ein: ") + +print("") +print(f"Hallo {name}") +print("") +print("Mit dieser E-Mail möchte ich dich über meine neue Adresse infomrieren") +print("Musterstraße 123") +print("12345 Musterhausen") +print("") +print("Viele Grüße") +print(f"{Absender}") \ No newline at end of file diff --git a/readme.md b/readme.md deleted file mode 100644 index 282434f..0000000 --- a/readme.md +++ /dev/null @@ -1 +0,0 @@ -# python intro