string methods in python to remove underscores code example Example: space to underscore python mystring.replace(" ", "_")