Erste Python Versuche nach Video
This commit is contained in:
parent
a85ac2df3a
commit
b8cc5aff03
17
Taxirechner.py
Normal file
17
Taxirechner.py
Normal file
@ -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")
|
||||
10
ToDo-List.py
Normal file
10
ToDo-List.py
Normal file
@ -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")
|
||||
5
currency-calculator.py
Normal file
5
currency-calculator.py
Normal file
@ -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")
|
||||
4
main.py
Normal file
4
main.py
Normal file
@ -0,0 +1,4 @@
|
||||
print("Hello world!")
|
||||
name = input("Wie ist dein Name? ")
|
||||
print(f"Grüß dich, {name}")
|
||||
input("Bitte Enter drücken ...")
|
||||
12
newsletter.py
Normal file
12
newsletter.py
Normal file
@ -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}")
|
||||
Loading…
Reference in New Issue
Block a user