Let’s check out some exercises that will help understand len() function better.
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.