Python Len Exercises
Let’s check out some exercises that will help understand len() function better.
Using len() function find out how many items are in the list.
len() function can also tell the length of a string.
Find out the length of the string given below.
How many keys are there in the dictionary?
Call the last element of the list by using the len() function.
Below is a nested data. Find out the length of the item: 'raincoat'. You can use reverse indexing.