pr3-skriptspr-gruppef-sl1/s1_a61_2.py

6 lines
126 B
Python

string = "this is a test"
replaced = string.replace(' ', '-')
print(replaced)
string2 = "hello, world"[-7::-1]
print(string2)