Merge remote-tracking branch 'origin/master'
# Conflicts: # Uebungen/bognerla.py
This commit is contained in:
+26
-10
@@ -1,10 +1,26 @@
|
||||
print("Projekttage")
|
||||
name = input("Was ist dein Name? ")
|
||||
alter = int(input("Wie alt bist du? "))
|
||||
print(name)
|
||||
print(alter)
|
||||
print("Name: " + name + " Alter: " + str(alter))
|
||||
counter = 0
|
||||
while counter < 10:
|
||||
print (counter)
|
||||
counter = counter + 1
|
||||
# print("Projekttage")
|
||||
# name = input("Was ist dein Name? ")
|
||||
# alter = int(input("Wie alt bist du? "))
|
||||
# print(name)
|
||||
# print(alter)
|
||||
#
|
||||
# if alter >= 18:
|
||||
# print("Sie sind älter als 17")
|
||||
# elif alter <= 10:
|
||||
# #Du bist jünger als 11
|
||||
# print("Du bist jünger als 11")
|
||||
#
|
||||
# else:
|
||||
# print("Du bist zwischen 11 und 17 Jahre alt")
|
||||
|
||||
Produkte = ["Apfel", "Birne", "Banane", "Ananas"]
|
||||
#print(Produkte[-3])
|
||||
woerterbuch = {"Apfel":1, "Birne":2, "Banane":34}
|
||||
#print(woerterbuch["Banane"])
|
||||
#for produkt in Produkte:
|
||||
# print(produkt)
|
||||
zaehler = 0
|
||||
while True:
|
||||
print(zaehler)
|
||||
zaehler = zaehler + 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user