Answers for "how to find the size of a list"

5

how to find length of list python

my_list = [1,2,3,4,5,6,7,8,9,10]

length_of_list = len(my_list)
Posted by: Guest on July-02-2020
0

get length of list python

#get length of list in Python using for loop
List = [‘Python’,’Java’,’Kotlin’,’Machine Learning’,’Keras’]
size = 0
print(“Length of the input string:”)
for x in List:
  size+=1
  print(size)

Output:
Length of the input string:
5
Posted by: Guest on May-23-2022

Code answers related to "how to find the size of a list"

Python Answers by Framework

Browse Popular Code Answers by Language