Rewrite the following code in Python after removing all syntax error(s). Underline each correction done in the code.
STRING = “WELCOME”
NOTE “”
for s in range [0,8]:
print (STRING[s])
print s STRING
Answer:
Corrected code:
STRING =
"WELCOME"
NOTE =
""
for
s
in
range
(
0
,
8
)
:
print
(STRING[s])
print
(s, STRING)