10. Rewrite the following code in python after removing all syntax error(s).
Underline each correction done in the code.
2.5=S
for Kin range(0,5)
IF K%4==0:
print (K*4)
Else:
print (K+3)
Answers
Answered by
1
Answer:
This is in python...
s = 2.5
for k in range(0, 5):
if k%4 == 0:
print(k*4)
else:
print(k + 3)
# I am using small 'k' in place of capital 'A', you can use capital 'K'
# HOPE THIS HELPS YOU!!
# PLEASE MARK MY ANSWER AS BRAINLIEST...
Similar questions