9951 explained code solutions for 126 technologies


pythonHow to trim a string


" text ".strip()ctrl + c
" text "

example string to trim whitespaces

.strip()

will trim whitespaces from both sides of the string