LearnPy Hub
← Exceptions problems
Easy

Safe Number

Read a line. If it is a whole number, print it doubled; otherwise print Not a number. Use try/except ValueError.

Input

One line.

Output

One line.

Sample 1

Input
21
Output
42

Sample 2

Input
abc
Output
Not a number
solution.py
Output appears here
Safe Number · Python practice problem · LearnPy Hub