In this program, we will take a string as input and strip spaces from a string.
Steps to solve the program
- Take a string as input.
- Strip the spaces from a string using strip().
- Print the output.
#Input string
string = " sqaltoolspythonfun "
#Printing output
print(string.strip())
Output :
sqaltoolspythonfun