Introduction
Quiz
5. Question 4
Summary

Instruction

Excellent! How about this question?

Exercise

Write a function named second_powers() that accepts a natural number x. Next, the function returns a dictionary that will map each even number from 2 to x to its second power.

For example, when x = 6, return the following dictionary:

{2: 4, 4: 16, 6: 36}