Q&A CBSE12D-2016-B01C #6449
Question:
Rewrite the following code in python after removing all syntax error(s). Underline each correction done in the code.
for Name in [Amar, Shveta, Parag]
IF Name[0]='S':
print(Name)
Answer:
for Name in [ " Amar " , " Shveta " , " Parag " ] : // ' ' can be used
if Name[0] == 'S':
print(Name)
