NIELIT O Level Exam

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 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 Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad