Question

Write a Python program as follows: Generate an empty set named nums, and then use a loop to add exactly six random integers to nums that are all in the range 10 to 20, inclusive. Then use another loop to display all the integers in nums, separated by spaces, on one line. Finally, display the total of the set. Example output:

11 12 15 17 18 20

The total of the set