- 1

Why is finding items in a list valid only for strings and not integers?

words=[1,2,3,4,5] print( 1 in words) print (7 in words) print(5 in words) No output

13th May 2017, 12:09 PM
Chinmayee Rao
Chinmayee Rao - avatar
1 Resposta
+ 3
Output: True False True ... in code playground ^^
13th May 2017, 12:40 PM
visph
visph - avatar