Report Bug

QusWhat does the strip() method do in Python? Qusपायथन में स्ट्रिप() विधि क्या करती है?


A. Removes all spaces from the string.
B. Removes the first and last character of the string.
C. Removes whitespace from the beginning and end of the string.
D. Converts the string into a list of characters.


Solution
C. Removes whitespace from the beginning and end of the string.



Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad