LearnPy Hub
← Regular Expressions problems
Easy

Ends With a Full Stop?

Read a line and print Yes if it ends with a full stop, using the pattern \.$ with re.search, otherwise No.

Input

One line.

Output

Yes or No.

Sample 1

Input
The end.
Output
Yes

Sample 2

Input
Is it?
Output
No
solution.py
Output appears here
Ends With a Full Stop? · Python practice problem · LearnPy Hub