# Python code to demonstrate 
# length of list 
# using naive method 

# Initializing list 
test_list = [ 1, 4, 5, 7, 8 ] 

# Printing test_list 
print ("The list is : " + str(test_list)) 

# Finding length of list 
# using loop 
# Initializing counter 
counter = 0
for i in test_list: 
	
	# incrementing counter 
	counter = counter + 1

# Printing length of list 
print ("Length of list using naive method is : " + str(counter)) 

# Python code to demonstrate 
# length of list 
# using naive method 

# Initializing list 
test_list = [ 1, 4, 5, 7, 8 ] 

# Printing test_list 
print ("The list is : " + str(test_list)) 

# Finding length of list 
# using loop 
# Initializing counter 
counter = 0
for i in test_list: 
	
	# incrementing counter 
	counter = counter + 1

# Printing length of list 
print ("Length of list using naive method is : " + str(counter)) 

# Python code to demonstrate # length of list # using naive method # Initializing list # Printing test_list # Finding length of list # using loop # Initializing counter # incrementing counter # Printing length of list