9951 explained code solutions for 126 technologies


pythonHow to right trim a string


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

example string to trim whitespaces

.rstrip()

will trim whitespaces from right side of the string