← Back to Dictionaries
Question 285
What Type Is Each Value
What Type Is Each Value
A record can hold values of different types. Print type() of three things, one per line: the age in the student record, the grades list in the record, and the record itself. Input: none. Output: three lines of the form <class '...'> as Python prints a type.
Expected Output:
<class 'int'> <class 'list'> <class 'dict'>
= newline. The output ends with a newline — print one after the last line.
Hints3 available
Sign in to use hintsTopics:
DictionariesType 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.