Restructured the entire folder and added this lesson's examples
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
print("Hallo! Ich bin ein Chatbot.")
|
||||
name = input("Wie heißt du?: ")
|
||||
|
||||
print("Hallo", name)
|
||||
|
||||
while True:
|
||||
text = input("> ")
|
||||
|
||||
if text == "hallo":
|
||||
print("Hallo!")
|
||||
|
||||
elif text == "wie gehts":
|
||||
print("Gut :)")
|
||||
|
||||
elif text == "bye":
|
||||
print("Tschüss!")
|
||||
break
|
||||
|
||||
else:
|
||||
print("Das verstehe ich nicht.")
|
||||
Reference in New Issue
Block a user