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
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
Math,
2 months ago
Math,
4 months ago
English,
4 months ago
Environmental Sciences,
10 months ago
Math,
10 months ago