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)
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)
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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us