?
What will be the output of the following Python code?
What will be the output of the following Python code?
lst=[3,4,6,1,2]
lst[1:2]=[7,8]
print(lst)
lst=[3,4,6,1,2]
lst[1:2]=[7,8]
print(lst)
Join the Discussion
Login to post a comment or share your explanation.
Login