Aufgabe 6 verbessert

master
Timo Wenz 2022-05-03 20:04:16 +02:00
parent 70dc927403
commit a0834f1f97
1 changed files with 2 additions and 5 deletions

View File

@ -2,8 +2,5 @@ s = "This is a test"
new_s = s.replace(' ','-')
print(new_s)
s1 = "Hello, World"
s1split = s1.split(",")
print(''.join(reversed(s1split)))
txt = "Hello, World" [-7::-1]
print(txt)