Python : Sequence data types in python

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

पायथन में स्ट्रिप() विधि क्या करती है?

What does the strip() method do 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 :

C. स्ट्रिंग के बिगनिंग और एन्ड से वाइटस्पेस को रिमूव करता है।



Latest Current Affairs 2026 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test , CCC MCQ Python Coding Tutorials Best Computer Training Institute in Prayagraj (Allahabad) O Level NIELIT Study material and Quiz Website development Company in Allahabad