Output Based
Output Based
Question:-Rewrite the following code in Python after removing all syntax error(s). Underline each correction
done in the code.
30 = To To = 30 # Error-1
for K in range(0,To) for K in range(0, To): # Error-2
IF k%4== 0: if k%4 == 0: # Error-3
print (K * 4) print (K * 4)
Else: else: # Error-4
print (K + 3) print (K + 3)