summaryrefslogtreecommitdiff
path: root/common/templates/python/src
diff options
context:
space:
mode:
authorbrustybee <bee@4d2.org>2026-03-19 23:43:21 +0530
committerbrustybee <bee@4d2.org>2026-03-19 23:43:21 +0530
commit9d2256adddbb830d33119a5e01e3fad6b4b0652b (patch)
tree958e1de443a6d59a9b09716ba5815c52bfb7bfb3 /common/templates/python/src
parentf9142a5822a4f212a3031b932cbf51b2d50344a8 (diff)
add flake templates
Diffstat (limited to 'common/templates/python/src')
-rw-r--r--common/templates/python/src/hello_world/__init__.py3
-rw-r--r--common/templates/python/src/hello_world/main.py6
2 files changed, 9 insertions, 0 deletions
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")
+