Rewrite the following code in Python after removing all syntax error(s). Underline each correction done in the code.

for student in [Jaya, Priya, Gagan]

If Student [0] = ‘S’:

print (student)

9 views

2 Answers

for studednt in values [“Jaya”, “Priya”, “Gagan”]:

 if student [0] = = “S” 

print (student)

9 views

To = 30 for K in range(0,To) :

if k%4==0:

print (K*4)

else:

print (K+3) 

9 views