s = "This is a test" new_s = s.replace(' ','-') print(new_s) txt = "Hello, World" [-7::-1] print(txt)