Consider the given list and write a Python code for the following construct:
3 marks (1 mark each)
>>> ls2=[2,4,6,8,0]
a. change the middle element to 100 using reverse indexing
Answers
Answered by
1
ls2 = [2, 4, 6, 8, 0]
ls2[-3] = 100
Similar questions
Math,
1 month ago
Math,
1 month ago
Psychology,
3 months ago
English,
9 months ago
Biology,
9 months ago