13 immernoch doof
This commit is contained in:
15
13/test.py
Normal file
15
13/test.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import math
|
||||
test_a = "Hallo_Welt"
|
||||
test_b = "Hell_Planet"
|
||||
|
||||
def slice(txt):
|
||||
l=len(txt)
|
||||
for i in range(1,l):
|
||||
if i<=l:
|
||||
print(f"{txt[:i+1]} {round(i/2)}" )
|
||||
else:
|
||||
print(txt[i])
|
||||
|
||||
|
||||
|
||||
print(slice(test_a))
|
||||
Reference in New Issue
Block a user