Write a Python program to remove spaces from a given string


Topic: Write a Python program to remove spaces from a given string

Solution

def remove_spaces(str1):
    str1 = str1.replace(' ','')
    return str1
 



List all Python Programs