Question: Write a function called missing . Ask the user for a series of integers from 1 to N . Send that list to missing and
Write a function called missing Ask the user for a series of integers from to N Send that list to missing and have it return the list of what numbers are missing.
For example, if they enter then you would call missing on that list which returns the list of missing numbers and then you can let them know by printing out the list that they are missing Test it out on this and show it works.
I want you to implement this using set subtraction. You could make a list from to N using rage then convert that to a set and then if you subtract the series they enter from it using set subtraction and then you will know the missing list and can print it out.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
