Programming Homework Help
Programming Homework Help. Program that Generates 100 Random Integers Question
I’m working on a python question and need an explanation and answer to help me learn.
Write a program that generates 100 random integers in the range [1, 500] and displays the number of distinct values generated on the screen. Write this program once using a list, second time using a dictionary, and one more time using a set. Which object is more suitable to write this program with?
Write the following function using all the three objects mentioned above and identify which object is more suitable.
A function that accepts a month number in its input parameter and returns the month name. For example, if the argument passed to the function is 3, the function returns “March”.