how to replace blank space in python code example Example: replace space with . pyhton mystring.replace(" ", "_")