#K5166. Object in Room Description
Object in Room Description
Object in Room Description
You are given a room's description and a keyword representing an object. Your task is to determine if the object is mentioned in the room description. The matching should be case-insensitive and operates as a substring search.
In mathematical notation, after converting both the description and the object to lowercase, you need to verify if
$$\text{object}_{lower} \in \text{description}_{lower}$$If the above condition holds, output True
, otherwise output False
.
inputFormat
The input is provided via stdin and consists of two lines:
- The first line is the room's description (a string).
- The second line is the object string to search for in the description.
outputFormat
Output a single line to stdout that contains either True
or False
based on whether the object (as a substring) is present in the description (after converting both to lowercase).
A dusty old bOoK lays on the wooden table near the window.
book
True
</p>