Westonci.ca is the premier destination for reliable answers to your questions, brought to you by a community of experts. Get quick and reliable solutions to your questions from a community of experienced experts on our platform. Discover in-depth answers to your questions from a wide network of professionals on our user-friendly Q&A platform.

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)

Sagot :