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')
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here