LearnPy Hub
← Strings problems
Easy

Contains the Word?

Read a sentence and a word (two lines). Print True if the word appears in the sentence, using in.

Input

Two lines.

Output

True or False.

Sample 1

Input
I love Python
Python
Output
True

Sample 2

Input
I love Python
Java
Output
False
solution.py
Output appears here
Contains the Word? · Python practice problem · LearnPy Hub