LearnPy Hub
← Exceptions problems
Easy

Show the Error Message

Read a line and try to convert it to an int. If it fails, catch the ValueError as e and print Error: followed by e. Otherwise print the number times 2.

Input

One line.

Output

One line.

Sample 1

Input
21
Output
42

Sample 2

Input
abc
Output
Error: invalid literal for int() with base 10: 'abc'
solution.py
Output appears here
Show the Error Message · Python practice problem · LearnPy Hub