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.

13th Mar 2021, 9:48 AM
Muhammad Abdulmalik
Muhammad Abdulmalik - avatar
1 Answer
+ 1
its similar to for i in evens: if (i**2)%2==0: print(i**2)
13th Mar 2021, 10:01 AM
iTech
iTech - avatar