+ 1
'not all arguments converted during string formatting' - what this implies?
l= list(input().split()) for i in range(len(l)): if(l[i]%2==0): print(i) why this code is not working?
1 Respuesta
0
list elements are not integers and u can' t use % operator.
Firt u need to convert l into a list of integers using map
l = list( map( int , l ))