adplus-dvertising
frame-decoration

Question

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

a.

s.__len__()

b.

len(s)

c.

size(s)

d.

s.size()

Posted under Python

Answer: (a).s.__len__()

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

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