From 5874217e58d1c5851a11aa6777dfa922da054023 Mon Sep 17 00:00:00 2001 From: schrom01 Date: Wed, 28 Sep 2022 10:42:36 +0200 Subject: [PATCH] Solved Task 1C --- Schenk_Roman_IT21bWIN_Test_Aufg1.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Schenk_Roman_IT21bWIN_Test_Aufg1.py b/Schenk_Roman_IT21bWIN_Test_Aufg1.py index 98adac1..c534f9b 100644 --- a/Schenk_Roman_IT21bWIN_Test_Aufg1.py +++ b/Schenk_Roman_IT21bWIN_Test_Aufg1.py @@ -26,3 +26,6 @@ print("B^TB:\n", B.T @ B) #Task B: print("4. Zeile von A x 2. Spalte von B:\n", A[3, :] @ B[:, 1]) +#Task C: +print("Spaltensumme A:\n", A.sum(0)) +print("Zeilensumme B:\n", B.sum(1)) \ No newline at end of file