favorite_language 'python favorite_language rstrip('pythonx favorite_language 'python the value stored in favorite_language at contains extra whitespace at the end of the string when you ask python for this value in terminal sessionyou can see the space at the end of the value when the rstrip(method acts on the variable favorite_language at wthis extra space is removed howeverit is only removed temporarily if you ask for the value of favorite_language againyou can see that the string looks the same as when it was enteredincluding the extra whitespace to remove the whitespace from the string permanentlyyou have to store the stripped value back into the variablefavorite_language 'python favorite_language favorite_language rstrip(favorite_language 'pythonto remove the whitespace from the stringyou strip the whitespace from the right side of the string and then store that value back in the original variableas shown at changing variable' value and then storing the new value back in the original variable is done often in programming this is how variable' value can change as program is executed or in response to user input you can also strip whitespace from the left side of string using the lstrip(method or strip whitespace from both sides at once using strip() favorite_language python favorite_language rstrip(pythonw favorite_language lstrip('python favorite_language strip('pythonin this examplewe start with value that has whitespace at the beginning and the end we then remove the extra space from the right side at vfrom the left side at wand from both sides at experimenting with these stripping functions can help you become familiar with manipulating strings in the real worldthese stripping functions are used most often to clean up user input before it' stored in program variables and simple data types