← Back to Printing
Question 88
Type Report
Type Report
Four variables are declared with type hints. Print four lines of output, one per variable in declaration order: the variable's name as a plain word, a space, then the result of type() on it, which Python shows in angle brackets with the word class. Pass the name text and the type as two values to each print call. Input: none; the values are fixed in the code.
Expected Output:
name <class 'str'> age <class 'int'> gpa <class 'float'> grades <class 'list'>
= 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.