Length Function in python is the len() function. len() function is an inbuilt function used to determine the length of a string, list, tuple and set. To find the Length of a string, say "s1" using the len() function, you call the len() function and pass string s1 as an argument to the len() function. for example:
s1 = "Dkchris Academy"
s2 = len(s1)
print(s2)
the result will be 15.
On the same note, if I have list, tuple and set, say
t1 =("four","three","two","one")
l1=[1,2,3,5,78,90,23]
set1 = {34,5,6,78,9,12,34}
I can find the length of variable t1, l1 and set1 as follows
len(t1) which will equal 4
len(l1) which will be 7
len(set1) which will equal 7 too.
Nesta página do site você pode assistir ao vídeo on-line Python 3 Tutorial | Length Function duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Dike Chris 02 Outubro 2019, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,293 vezes e gostou 17 espectadores. Boa visualização!