From 037d30f20aafef095c6c0bfc8c6811ec6f64bd2f Mon Sep 17 00:00:00 2001 From: Thomas <2121321@hs-mannheim.de> Date: Fri, 13 Jan 2023 15:34:17 +0100 Subject: [PATCH] Beginn of S2 --- SL_2/s2_a1.py | 9 +++++++++ SL_2/s2_a2.py | 6 ++++++ 2 files changed, 15 insertions(+) create mode 100644 SL_2/s2_a1.py create mode 100644 SL_2/s2_a2.py diff --git a/SL_2/s2_a1.py b/SL_2/s2_a1.py new file mode 100644 index 0000000..bd9552f --- /dev/null +++ b/SL_2/s2_a1.py @@ -0,0 +1,9 @@ +class parent: + pass +class child(parent): + pass + +class imbread(parent,child): + pass + +i = imbread() \ No newline at end of file diff --git a/SL_2/s2_a2.py b/SL_2/s2_a2.py new file mode 100644 index 0000000..ecc08c0 --- /dev/null +++ b/SL_2/s2_a2.py @@ -0,0 +1,6 @@ +import re + + +before = "If the the problem is textual, use the the re module" +after = re.sub("the the", "the", before) +print(after) \ No newline at end of file