Codewars Aufgabe hinzugefügt

This commit is contained in:
ola hamza 2026-02-28 20:48:08 +01:00
commit 441f153c45
2 changed files with 14 additions and 0 deletions

9
.pre-commit-config.yaml Normal file
View File

@ -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

5
src/solution.py Normal file
View File

@ -0,0 +1,5 @@
def even_or_odd(number):
if number % 2 == 0:
return "Even"
else:
return "Odd"