From c4695fe6fb44429439a968c3824ab58862f9a63e Mon Sep 17 00:00:00 2001 From: punix Date: Sun, 2 Apr 2023 08:55:11 +0200 Subject: [PATCH] =?UTF-8?q?neuer=20commit=20in=20name=20=3D=20main=20hinzu?= =?UTF-8?q?gef=C3=BCgt=202.2.2023=208:55?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 45a4d1a..1e46953 100755 --- a/main.py +++ b/main.py @@ -6,7 +6,7 @@ cube_ = 'Würfel-Generator\n' system('clear') -def cube(): +def main(): while True: try: print('\x1b[H\x1b[1;14H ', cube_) @@ -33,4 +33,5 @@ def cube(): print('Ups! Da wurde nicht 1 oder 2 gedrückt.\nBitte nochmal versuchen.\n') -cube() +if __name__ == "__main__": + main()