From f15186024970d98266703ce7c0667f721a009257 Mon Sep 17 00:00:00 2001 From: Hendrik Jäger Date: Wed, 2 Aug 2023 00:33:13 +0200 Subject: change file structure --- src/hello.py | 11 +++++++++++ src/hello/__init__.py | 0 src/hello/hello.py | 10 ---------- 3 files changed, 11 insertions(+), 10 deletions(-) create mode 100755 src/hello.py delete mode 100644 src/hello/__init__.py delete mode 100755 src/hello/hello.py diff --git a/src/hello.py b/src/hello.py new file mode 100755 index 0000000..1e0e056 --- /dev/null +++ b/src/hello.py @@ -0,0 +1,11 @@ +#!env python3 + +import sys + +def greet(who_to_greet: str): + return 'Hello ' + who_to_greet + + +if __name__ == '__main__': + greeting = greet(sys.argv[1]) + print(greeting) diff --git a/src/hello/__init__.py b/src/hello/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/src/hello/hello.py b/src/hello/hello.py deleted file mode 100755 index a97e848..0000000 --- a/src/hello/hello.py +++ /dev/null @@ -1,10 +0,0 @@ -#!env python3 - -import sys - -def greet(who_to_greet: str): - return 'Hello ' + who_to_greet - - -greeting = greet(sys.argv[1]) -print(greeting) -- cgit v1.2.3