write a simple program that reads in numbers and adds them to a list if they are not already contained in the list. when the list contains ten numbers, the program displays the contents and quits. create an empty list values use a while loop to test that the length of the list (see p. 257) is less than num integers. we need a while loop because we need to ensure the list has 10 elements at the end of the program. inside the loop, read in value from the user and check if the value is already in values before appending it to the list (see p 254 for check). outside the loop, print the list of 10 values (no loop required - just print output string and values)



Answer :

Other Questions