Course Content

Python Problem 7 | Python Tutorials For Absolute Beginners In Hindi #115

The task you have to perform is “Search Engine”. This task consists of a total of 20 points to evaluate your performance.

Problem Statement:-

You are given few sentences as a list (Python list of sentences). Take a query string as an input from the user. You have to pull out the sentences matching this query inputted by the user in decreasing order of relevance after converting every word in the query and the sentence to lowercase. Most relevant sentence is the one with the maximum number of matching words with the query.

Sentences = [“Python is cool”, “python is good”, “python is not python snake”]


Please input your query string

“Python is”


3 results found:

  1. python is not python snake
  2. python is good
  3. Python is cool

Solving challenges will make you a great problem solver and will improve your coding skills. This exercise is a part of python tutorial for absolute begineers. To learn more about python keep up to date with codewithharry.



Be the first person to comment!



No downloadable resources for this video. If you think you need anything, please post it in the QnA!

Course Announcements

Any Course related announcements will be posted here