Find the best solutions to your problems with the help of IDNLearn.com. Our platform offers reliable and detailed answers, ensuring you have the information you need.

Whole numbers are 1, 2, 3, and so on. Write some code that assigns to inverted a dictionary that maps the first n whole numbers to their inverse (1/n).