Computer Science, asked by ayswaryalekshmi, 4 months ago

Rewrite the following code in Python after removing all syntax errors.

Underline each correction done in the code. (2)

a=0

For i in range (4,8)

If i%2==0:

a=a+i

Print(a)​

Answers

Answered by Anonymous
2

Answer:

hello,

Explanation:

#incorrect

a=0

For i in range (4,8)

If i%2==0:

a=a+i

Print(a)​

_________________________________________________________

#corrected

a=0

for i in range (4,8):

   if i%2==0:

       a=a+i

print(a)​

__________________________________________________________

hope it helps you

please mark brainliest

@ItzSnowySecret07

Similar questions