commit message from python script

This commit is contained in:
2023-07-14 17:54:45 +02:00
parent 3dd0dd7082
commit 53fedd495e
4 changed files with 49 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
#! /usr/bin/env python
def replace_from(input = str):
return input.replace("test", "mammam")
print(replace_from(input="test dk"))
test = ["test 0", "test 2", "test 3" ]
#map verfendet eine funktion auf eine Liste an
splitting_map = map(len, test)
print(list(splitting_map))
splitting_test = map(replace_from, test)
print(list(splitting_test))