Length of a list in Python
Using the function len you can find the length of a list:
lst = [1, 2, 3]
print(len(lst)) # 3
Given a list:
lst = ['a', 'b', 'c', 'd']
Find its length.
Given a string:
tst = '12abc45'
Create a list from it and print its length to the console.