Assume the following statement appears in a program: names = [] Which of the following statements would you use to add the string ‘Wendy’ to the list at index 0? Why would you select this statement...



Assume the following statement appears in a program:



names = []



Which of the following statements would you use to add the string ‘Wendy’ to the


list at index 0? Why would you select this statement instead of the other?



a. names[0] = 'Wendy'



b. names.append('Wendy')



May 26, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here