ganti ruang dengan. Pyhton

mystring.replace(" ", "_")
Goofy Goober