N = 4 M = 7 answer = 0 for x in range(N, M+1): if x % 2 == 0: answer += x ** 2 print(answer)
To embed this project on your website, copy the following code and paste it into your website's HTML: