KI Übung
This commit is contained in:
parent
bd313da205
commit
91156bb586
23
SoftwareEntwicklung/KI_Übungen/KI.py
Normal file
23
SoftwareEntwicklung/KI_Übungen/KI.py
Normal file
@ -0,0 +1,23 @@
|
||||
def zaehle_vokale(text):
|
||||
# TODO: Implementiere die Logik hier
|
||||
pass
|
||||
|
||||
def umdrehen(text):
|
||||
# TODO: Implementiere die Logik hier
|
||||
pass
|
||||
|
||||
def ist_palindrom(text):
|
||||
# TODO: Implementiere die Logik hier
|
||||
pass
|
||||
|
||||
# --- Main Abschnitt ---
|
||||
if __name__ == "__main__":
|
||||
test_wort = "Lagerregal"
|
||||
satz = "Python macht Spass"
|
||||
|
||||
print(f"Analyse für: '{satz}'")
|
||||
print(f"Vokale: {zaehle_vokale(satz)}")
|
||||
print(f"Umgedreht: {umdrehen(satz)}")
|
||||
|
||||
print(f"\nIst '{test_wort}' ein Palindrom?")
|
||||
print("Ja" if ist_palindrom(test_wort) else "Nein")
|
||||
Loading…
x
Reference in New Issue
Block a user