निम्नलिखित कोड का आउटपुट लिखें:
Write the output of the following code :
>>> L=[‘w’,’e’,’l’,’c’,’o’,’m’,’e’]
>>> print(len(L))
A)
B)
C)
D)
Explanation:
The list L
contains the following characters: ['w', 'e', 'l', 'c', 'o', 'm', 'e']
. It has 7 elements.
The len()
function returns the number of elements in the list.
So, the output will be:
Answer: (A) 7