uebung 1 #3

Merged
schmidmarco merged 1 commits from exercise1 into master 2026-02-27 14:43:11 +01:00
2 changed files with 11 additions and 0 deletions
Showing only changes of commit c11e051a4d - Show all commits

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") == ""