LearnPy Hub
← Exceptions problems
Easy

Decimal or Not

Read a line. Print float() of it; if that fails print Not a decimal: TEXT.

Input

One line.

Output

One line.

Sample 1

Input
3.5
Output
3.5

Sample 2

Input
abc
Output
Not a decimal: abc
solution.py
Output appears here
Decimal or Not · Python practice problem · LearnPy Hub