Aufgabe 6 verbessert
parent
70dc927403
commit
a0834f1f97
|
@ -2,8 +2,5 @@ s = "This is a test"
|
||||||
new_s = s.replace(' ','-')
|
new_s = s.replace(' ','-')
|
||||||
print(new_s)
|
print(new_s)
|
||||||
|
|
||||||
s1 = "Hello, World"
|
txt = "Hello, World" [-7::-1]
|
||||||
|
print(txt)
|
||||||
s1split = s1.split(",")
|
|
||||||
|
|
||||||
print(''.join(reversed(s1split)))
|
|
Reference in New Issue