Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

to remove whitspace in string

# Python3 code to remove whitespace
def remove(string):
    return "".join(string.split())
      
# Driver Program
string = ' g e e k '
print(remove(string))
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #remove #whitspace #string
ADD COMMENT
Topic
Name
8+3 =