From 91156bb58675fa5244c288bc1cd47956f4b6b3af Mon Sep 17 00:00:00 2001 From: Chrissi Date: Thu, 30 Apr 2026 16:19:20 +0200 Subject: [PATCH] =?UTF-8?q?KI=20=C3=9Cbung?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SoftwareEntwicklung/KI_Übungen/KI.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 SoftwareEntwicklung/KI_Übungen/KI.py diff --git a/SoftwareEntwicklung/KI_Übungen/KI.py b/SoftwareEntwicklung/KI_Übungen/KI.py new file mode 100644 index 0000000..840fa02 --- /dev/null +++ b/SoftwareEntwicklung/KI_Übungen/KI.py @@ -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") \ No newline at end of file