Computer Science, asked by bikervijay, 2 months ago

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 riyaatschool
0

Answer:

Suresh. Suthan

Explanation:

please mark brainliest its my birthday today

plzzzzzzzzz

Answered by jai696
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)

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions