From 9d2256adddbb830d33119a5e01e3fad6b4b0652b Mon Sep 17 00:00:00 2001 From: brustybee Date: Thu, 19 Mar 2026 23:43:21 +0530 Subject: add flake templates --- common/templates/python/src/hello_world/__init__.py | 3 +++ common/templates/python/src/hello_world/main.py | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 common/templates/python/src/hello_world/__init__.py create mode 100644 common/templates/python/src/hello_world/main.py (limited to 'common/templates/python/src/hello_world') diff --git a/common/templates/python/src/hello_world/__init__.py b/common/templates/python/src/hello_world/__init__.py new file mode 100644 index 0000000..402c976 --- /dev/null +++ b/common/templates/python/src/hello_world/__init__.py @@ -0,0 +1,3 @@ +def hello_world(action: str): + result = [*hello_world.__name__.split("_")] + eval(action)(" ".join(result).title() + "!\n") diff --git a/common/templates/python/src/hello_world/main.py b/common/templates/python/src/hello_world/main.py new file mode 100644 index 0000000..71ad102 --- /dev/null +++ b/common/templates/python/src/hello_world/main.py @@ -0,0 +1,6 @@ +from hello_world import hello_world + + +def main(): + hello_world("print") + -- cgit v1.3.1