commit message from python script
This commit is contained in:
15
test_skripte/verstehen_map.py
Normal file
15
test_skripte/verstehen_map.py
Normal 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))
|
||||
Reference in New Issue
Block a user