pr3-skriptspr-gruppef-sl1/s1_a61_2.py

6 lines
126 B
Python
Raw Normal View History

2022-11-15 14:51:35 +01:00
string = "this is a test"
replaced = string.replace(' ', '-')
print(replaced)
string2 = "hello, world"[-7::-1]
print(string2)