Codewars Aufgabe hinzugefügt
This commit is contained in:
commit
441f153c45
9
.pre-commit-config.yaml
Normal file
9
.pre-commit-config.yaml
Normal 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
5
src/solution.py
Normal file
@ -0,0 +1,5 @@
|
||||
def even_or_odd(number):
|
||||
if number % 2 == 0:
|
||||
return "Even"
|
||||
else:
|
||||
return "Odd"
|
||||
Loading…
x
Reference in New Issue
Block a user