0
evens=[i**2 for i in range(10) if i**2 % 2 == 0] print(evens)
I don't understand the code whose started at if statement, pls I need explaination.
1 Respuesta
+ 1
its similar to
for i in evens:
if (i**2)%2==0:
print(i**2)
I don't understand the code whose started at if statement, pls I need explaination.