Q. What does the strip method do in Python?

  • (A) Removes characters from a string
  • (B) Replaces characters in a string
  • (C) Adds characters to a string
  • (D) Splits a string
πŸ’¬ Discuss
βœ… Correct Answer: (A) Removes characters from a string
Explanation: The strip method removes leading and trailing spaces by default.
Explanation by: Mr. Dubey
The strip method removes leading and trailing spaces by default.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
69
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
90%
Success Rate