From: Hendrik Jäger Date: Tue, 1 Aug 2023 22:33:13 +0000 (+0200) Subject: change file structure X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=f15186024970d98266703ce7c0667f721a009257;p=user%2Fhenk%2Fcode%2Fpython%2Flearn_python.git change file structure --- 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)