Python Practice › String Programs › Program 70
Remove all spaces
Write a Python program to remove all spaces from a string.
Input
"python at sqatools"
Output
pythonatsqatools
Approach
replace(" ", "").
Solution
print("python at sqatools".replace(" ", ""))Output
pythonatsqatools
Learn the concept
New to this topic? Read the lesson, then come back.