LearnPy Hub
← Exceptions problems
Easy

No Such Method

Read a token. If it is all digits, turn it into an int. Then try to print x.upper(); if that raises AttributeError, print numbers have no upper().

Input

One token.

Output

One line.

Sample 1

Input
hello
Output
HELLO

Sample 2

Input
123
Output
numbers have no upper()
solution.py
Output appears here
No Such Method · Python practice problem · LearnPy Hub