Discover new perspectives and gain insights with IDNLearn.com's diverse answers. Get thorough and trustworthy answers to your queries from our extensive network of knowledgeable professionals.
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 :
Thank you for using this platform to share and learn. Don't hesitate to keep asking and answering. We value every contribution you make. Accurate answers are just a click away at IDNLearn.com. Thanks for stopping by, and come back for more reliable solutions.