What is the use of len(list)) in Python?
Answers
Answered by
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
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
English,
5 months ago
Political Science,
5 months ago
English,
5 months ago
Computer Science,
10 months ago
Computer Science,
10 months ago
Math,
1 year ago