Compare commits

..

2 Commits

Author SHA1 Message Date
fbcb5ba00b Merge pull request 'uebung 1' (#3) from exercise1 into master
Reviewed-on: #3
top
2026-02-27 14:43:10 +01:00
c11e051a4d uebung 1 2026-02-27 14:40:59 +01:00
2 changed files with 11 additions and 0 deletions

5
src/exercise1.py Normal file
View File

@ -0,0 +1,5 @@
def remove_char(s: str) -> str:
return s[1:-1]

6
tests/test_exercise1.py Normal file
View File

@ -0,0 +1,6 @@
from src.exercise1 import remove_char
def test_remove_first_last_char() -> None:
assert remove_char("eloquent") == "loquen"
assert remove_char("ab") == ""