The strip() method produces a copy of the string with all the leading whitespace characters released but does not remove trailing whitespace characters.
The Strip() process in Python removes or truncates the given characters from the beginning and the end of the actual string. The default behavior of the strip() method is to remove the whitespace from the start and at the end of the string.
Python provides various ways and methods to generate a substring, check if a substring is present, to get the index of a substring, and more. start -
To learn more about Python, refer
https://brainly.com/question/26497128
#SPJ4