LearnPy Hub
← Regular Expressions problems
Easy

Starts With a Digit?

Print Yes if the line starts with a digit, using re.match(r'\d', text), otherwise No.

Input

One line.

Output

Yes or No.

Sample 1

Input
3 apples
Output
Yes

Sample 2

Input
apples 3
Output
No
solution.py
Output appears here
Starts With a Digit? · Python practice problem · LearnPy Hub