Eliminar caracteres espaciales de la cadena en Python
>>> " hello apple ".replace(" ", "")
'helloapple'
Tan MH
>>> " hello apple ".replace(" ", "")
'helloapple'