Python removing extra spaces or characters using strip() function
Some times it happens you want to remove spaces or any other character from the right and left side from a string. So you can easily do that with using strip function. we called strip function on a string object and it requires one argument which is character which you want to remove.