# example of len() function list_number = [6, 3, 8, 0] length = len(list_number) print("The lentgh of the list is: " + str(length))
Here is what the above code is Doing:
1. We created a list called list_number.
2. We created a variable called length and assigned it the value of the len() function.
3. We printed the value of the length variable.