LearnPy Hub
← Regular Expressions problems
Easy

Contains a Digit?

Read a line and print Yes if it contains at least one digit, using re.search(r'\d', text), otherwise No.

Input

One line.

Output

Yes or No.

Sample 1

Input
abc1
Output
Yes

Sample 2

Input
hello
Output
No
solution.py
Output appears here
Contains a Digit? · Python practice problem · LearnPy Hub