LearnPy Hub
← Exceptions problems
Easy

Only If It Worked

Read a line. Try converting it to float. On ValueError print Invalid; in the else block print the number squared with 2 decimals.

Input

One line.

Output

One line.

Sample 1

Input
3
Output
9.00

Sample 2

Input
1.5
Output
2.25
solution.py
Output appears here
Only If It Worked · Python practice problem · LearnPy Hub