replace a letter in a string with space in python code example Example: replacing spaces in a string python mystring.replace(" ", "_")