replace t with space python code example Example: replace space with . pyhton mystring.replace(" ", "_")