MCQ Answer

What does the strip() method do in Python?

What does the strip() method do in Python?

पायथन में स्ट्रिप() विधि क्या करती है?
Topic : Sequence data types in python

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. स्ट्रिंग को कैरेक्टर्स की लिस्ट में कन्वर्ट करता है।




Correct Answer is :

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



Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2025 Python Programming Tutorials 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 Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz