CJCoding With Joseph
15free / daySign inCreate account

Count The Fields And Grades

Use len() twice on the student record: print how many fields the dict holds, then on the next line how many grades are in the list under the key grades. Input: none. Output: two lines, each a whole number.

Expected Output:

4
3

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

Hints2 available
Topics:
Dictionaries
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.