From c48231f1931f1b397ee069f8e2c4414c2260a2da Mon Sep 17 00:00:00 2001 From: Aliyah Date: Thu, 22 Oct 2026 11:30:54 +0200 Subject: [PATCH] =?UTF-8?q?Erster=20Stand:=20compute.py=20Kommentar=20in?= =?UTF-8?q?=20compute.py=20hinzugef=C3=BCgt=20Requirements:=20tabulate=20u?= =?UTF-8?q?nd=20ruff=20eingerichtet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 4 +++- compute.py | 2 +- main.py | 17 +++-------------- 3 files changed, 7 insertions(+), 16 deletions(-) diff --git a/ pyproject.toml b/ pyproject.toml index 46e3b47..0cc6033 100644 --- a/ pyproject.toml +++ b/ pyproject.toml @@ -1,3 +1,5 @@ [project] name = "matrixmania" -version = "0.1.0" \ No newline at end of file +version = "0.1.0" +#(schönere matritzen als tabellen, code überprüfen) +dependencies = ["tabulate", "ruff"] \ No newline at end of file diff --git a/compute.py b/compute.py index 9765ade..817d662 100644 --- a/compute.py +++ b/compute.py @@ -196,4 +196,4 @@ if __name__ == "__main__": print("All tests passed.") -# Zweiter Commit zum Testen der Versionskontrolle \ No newline at end of file +# Zweiter Commit zum Testen der Versionskontrolle diff --git a/main.py b/main.py index 94e3a87..2cd15b5 100644 --- a/main.py +++ b/main.py @@ -1,16 +1,5 @@ -# This is a sample Python script. +from tabulate import tabulate -# Press ⌃R to execute it or replace it with your code. -# Press Double ⇧ to search everywhere for classes, files, tool windows, actions, and settings. +matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] - -def print_hi(name): - # Use a breakpoint in the code line below to debug your script. - print(f'Hi, {name}') # Press ⌘F8 to toggle the breakpoint. - - -# Press the green button in the gutter to run the script. -if __name__ == '__main__': - print_hi('PyCharm') - -# See PyCharm help at https://www.jetbrains.com/help/pycharm/ +print(tabulate(matrix, tablefmt="grid"))