Home / MCQ Bank / Computer
Computer Lists In Python

What is the output of the following code: my_list = [1, 2, 3, 4] my_list.remove(2) print(my_list)

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option B • [1, 3, 4]

Related Computer Questions

What will be the output of the following C++ code? #include <iostream> #include <string> #include <cstring> using namespace std; int main() { string s('a'); cout<<s; return 0; } What should be the extension to execute files? File specification books are created primarily for the use of Which macro retrieves the next argument in the parameter list of the function with type type? What will be the output of the following R code? > x <- matrix(1:6, 2, 3) > x[1, , drop = FALSE]