Computer Science

What is the output produced when this code executes?

a = 0
for i in range(4,8):
    if i % 2 == 0:
        a = a + i
print (a) 
  1. 4
  2. 8
  3. 10
  4. 18

Python Control Flow

43 Likes

Answer

10

Answered By

8 Likes


Related Questions