summaryrefslogtreecommitdiff
path: root/common/templates/python/src
diff options
context:
space:
mode:
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")
+