+ 1

What is the uses of "len" and "in" function in python

Why above fuction used in python

1st Apr 2021, 12:31 PM
Jailsingh Eslavath
3 Answers
+ 3
If you're referring to Python `list`, then both `len` and `in` are covered in the tutorial. And as SAN said, about functionality, those are used with iterable objects, including but not limited to `list`. https://www.sololearn.com/learn/Python/2433/?ref=app https://www.sololearn.com/learn/Python/2432/?ref=app
1st Apr 2021, 12:40 PM
Ipang
+ 2
len() : use for getting length of string in : Basically, the in operator in Python checks whether a specified value is a constituent element of a sequence like string, array, list, or tuple etc. When used in a condition, the statement returns a Boolean result evaluating into either True or False .
1st Apr 2021, 12:34 PM
SAN
SAN - avatar
0
Ok tq
1st Apr 2021, 12:39 PM
Jailsingh Eslavath