Computer Science, asked by shashanknagar1728, 8 months ago

What is the use of len(list)) in Python?

Answers

Answered by Anonymous
2

Answer:

len() is a built-in function in python. You can use the len() to get the length of the given string, array, list, tuple, dictionary, etc. You can use len function to optimize the performance of the program. The number of elements stored in the object is never calculated, so len helps provide the number of elements.

Answered by laraibmukhtar55
0

Use of len (list) in python:

• len() is a built-in function in python language.  

• We can use the len() to develop the length of the given string, array, list, tuple, dictionary, etc.  

• We can use len function to enhance the performance of the program.  

• The number of elements kept in the object is never deliberate, so len assists to provide the number of elements.

Hope it helped..

Similar questions