From: Hendrik Jäger Date: Tue, 1 Aug 2023 13:59:53 +0000 (+0200) Subject: feat: greet given argument X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;ds=sidebyside;h=a704f9961e32135e6d9b6b7dcc432adbec9d9170;p=user%2Fhenk%2Fcode%2Fpython%2Flearn_python.git feat: greet given argument --- diff --git a/src/hello/hello.py b/src/hello/hello.py index ee18b25..debf6e1 100755 --- a/src/hello/hello.py +++ b/src/hello/hello.py @@ -1,3 +1,7 @@ #!env python3 -print('Hello World') +import sys + +who_to_greet = sys.argv[1] + +print('Hello', who_to_greet)