my_list = ['kiwi', 'apple', 'banana']
- orange = my_list[1]
- my_list[1] = ‘orange’
- my_list[‘orange’] = 1
- my_list[1] == orange
Correct Answer:
- my_list[1] = ‘orange’
What is the correct syntax for replacing the string apple in the list with the string orange?
my_list = ['kiwi', 'apple', 'banana']
Correct Answer:
Latest Updates
No posts found in this category.