#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