Computer Science - Class 12
Solutions to CBSE Sample Paper - Computer Science Class 12

What will be the output of the following code snippet?

sentence = "The quick brown fox jumps over the lazy dog"

print(sentence.find("fox"))

A) 4 

B) 10 

C) 16 

D) -1

Answer: 

Answer by student

C) 16

Detailed answer by teachoo

The rest of the post is locked. Join Teachoo Black to see the full post.

Go Ad-free
Davneet Singh's photo - Co-founder, Teachoo

Made by

Davneet Singh

Davneet Singh has done his B.Tech from Indian Institute of Technology, Kanpur. He has been teaching from the past 14 years. He provides courses for Maths, Science and Computer Science at Teachoo