-
Removing all space in Python
Source code :
Download
sentence = ' hello apple ' sentence=sentence.replace(" ","") print(sentence)
Output :
helloapple
Algorithm :
Declare a variable with values
Declare a replace function to remove the spaces using the syntax .replace(" ","")
Finally print the result
Output :
Comments :
Random Picks
Printing messages in the same line in Swift
Factorial of a number in Ruby
Selection Sort in C++
Reverse of a number in C++
Reverse a String in PHP
Finding odd numbers in between 15-27 in Java
Calculate Area of an Equilateral Triangle in C
Transpose a matrix in Python
Writing a File in C++
Friend Function in C++
Comments :