LV
1. Rewrite the following code after removing syntactical errors, Underline
each correction done in the code.
for name in [amar,shweta, parag]
If name[0]='s':
print(name)
Answers
Answered by
1
Answer:
for Name in [Amar, Shweta, Parag] : #colon was missing
if Name [0] == ‘s’: #Wrong indentation
#double equal to is comparison operator
#single is assignment
print(Name)
Similar questions