NIELIT O Level Exam

To return the length of string s what command do we execute?

To return the length of string s what command do we execute?

स्ट्रिंग की लेंथ रिटर्न करने के लिए हम किस कमांड को एक्सक्यूट करते हैं?

A. s.__len__()

B. len(s)

C. size(s)

D. s.size()




Correct Answer is :

B. len(s)



Explanation
Execute in shell to verify.
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