LearnPy Hub
← Data Types & Casting problems
Medium

Number or Text?

Read a line. If it can be converted to an int, print int; else if it can be converted to a float, print float; otherwise print str.

Input

One line.

Output

int, float or str.

Sample 1

Input
42
Output
int

Sample 2

Input
3.14
Output
float
solution.py
Output appears here
Hints
Number or Text? · Python practice problem · LearnPy Hub