What will be the output of the following code:
for Name in ['Raj','Suresh','Prakash','Suthan']
if Name[0]='S':
print(Name)
Answers
Answered by
0
Answer:
Suresh. Suthan
Explanation:
please mark brainliest its my birthday today
plzzzzzzzzz
Answered by
1
It will throw an error because the code has syntactic errors. If the errors are fixed like below, the output will be
Suresh
Suthan
Fixed code:
for Name in ["Raj", "Suresh", "Prakash", "Suthan"]:
if Name[0] == "S":
print(Name)
Similar questions