• Register
110 points
7

Overview item in a list:

Today we will see in our website kodlogs how we estimate an item in Python programming language especially in Python. No program can work without counting the number of items in any place. Len function in Python  Used to find the length. Any data, string, tuple, list, dictionary. To find out the length of all of them, today we will learn in kodlogs how to use the len function in Python.

Example 1

>>>1=['k','o','d','l','o','g']
>>>len(1)

OUTPUT 
6

Example 2

>>>ko=[7,8,9,10]
>>>len(ko)

OUTPUT 
4

Example 3

>>>word='Kodlogs '
>>>len(word)

OUTPUT 
7

 

110 points
7