CJCoding With Joseph
15free / daySign inCreate account

Even A Number Is Text

Read one line and print it back unchanged, then on the next line print its type using type(). The second line shows <class 'str'> even when digits were typed, because input() always hands back text. Input: one line, no prompt.

Expected Output:

42
<class 'str'>

= newline. The output ends with a newline — print one after the last line.

Hints2 available
Topics:
User InputVariables
📥 Auto-Input:
42\n
This input is automatically fed to your program's stdin
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.