← Back to User Input
Question 169
Even A Number Is Text
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
Sign in to use hintsTopics:
User InputVariables
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.