Aufgabe 6 verbessert
parent
70dc927403
commit
a0834f1f97
|
@ -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)
|
Reference in New Issue