commit 441f153c45e548387761c947625cd6bd1ebea153 Author: ola hamza Date: Sat Feb 28 20:48:08 2026 +0100 Codewars Aufgabe hinzugefügt diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..b278d4c --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,9 @@ +repos: +- repo: https://github.com/psf/black + rev: 24.2.0 + hooks: + - id: black +- repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.3.0 + hooks: + - id: ruff \ No newline at end of file diff --git a/src/solution.py b/src/solution.py new file mode 100644 index 0000000..782cfce --- /dev/null +++ b/src/solution.py @@ -0,0 +1,5 @@ +def even_or_odd(number): + if number % 2 == 0: + return "Even" + else: + return "Odd"