LearnPy Hub
← Data Types & Casting problems
Easy

Only Digits?

Read a line and print True if every character is a digit, otherwise False. Use str.isdigit().

Input

One line.

Output

True or False.

Sample 1

Input
12345
Output
True

Sample 2

Input
12a45
Output
False
solution.py
Output appears here
Only Digits? · Python practice problem · LearnPy Hub