← Back to Printing
Question 66
What Type Is Each One
What Type Is Each One
Three variables are declared with type hints. Print the type of each one on its own line, in the order name, age, gpa, by calling type() on each variable and printing the result; the output shows each type in angle brackets with the word class, exactly as Python reports it. Input: none; the values are fixed in the code.
Expected Output:
<class 'str'> <class 'int'> <class 'float'>
= newline. The output ends with a newline — print one after the last line.
Hints3 available
Sign in to use hintsTopics:
PrintingType Hints
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.