Home / MCQ Bank / Computer
Computer Lists In Python

What will be the output of the following Python code? lst=[3,4,6,1,2] lst[1:2]=[7,8] print(lst)

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option A • [3, 7, 8, 6, 1, 2]

Related Computer Questions

Which of the following is not a term of MS-Excel? What is the recommended way to comment out multiple lines of code in Ruby? How many iterating statements are involved in the naive method of matrix multiplication? What is the purpose of the redo keyword in Ruby? Choose the output returned when read() reads the character from the console?