Apple Interview Question

remove spaces from a string in python (without using the remove function)