NIELIT O Level Exam

Which of the following python in-built function is used to remove all the leading and trailing spaces from a string.

Which of the following python in-built function is used to remove all the leading and trailing spaces from a string.

निम्नलिखित में से कौन सा पायथन इन-बिल्ट फंक्शन एक स्ट्रिंग से सभी लीडिंग और ट्रेलिंग रिक्त स्थान को हटाने के लिए उपयोग किया जाता है।

A. space()

B. strip()

C. remove()

D. None of the above उपरोक्त में से कोई नहीं




Correct Answer is :

B. strip()



CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad