Question discussion

In Python language, which of the following is correct for ‘strip ( )’ function?

3479Medium DSSSB TGT Computer Science 0 replies

In Python language, which of the following is correct for ‘strip ( )’ function?

  • AIn returns the string by removing trailing and leading white spaces
  • BIt returns a list from the string depending upon the delimiter that we specify
  • CIt returns the power of values passed
  • DIt returns the string with the first character in upper case and lowering the case for rest of the string
Correct answer: A

Explanation

strip() returns the string after removing leading and trailing white spaces.

Discussion 0

Nobody has replied yet. Start the discussion!