Spaceless String
Given a string, return the string without any spaces.
Sample Code:
def noSpace(str):
# Enter your logic here...
Examples:
Input: ' Codetisan '
Output: 'Codetisan'
Explanation: There are no spaces available anywhere in the output string.
Input: 'Binary
code: 0 1'
Output: 'Binarycode:01'
Explanation: Binary is followed by a newline, so the newline must also be removed.