Predict the output of the following python code

[i**2 for i in range(10) if i % 2 == 0]

 

 

 

 

The given Python code is an example of list comprehension which generates a list of square of even numbers from 0 to 10. In the code, 'i**2' calculates the square, 'for i in range(10)' loops from 0 up to not including 10, and 'if i % 2 == 0' checks if the number is even.