Home / MCQ Bank / Computer
Computer Conditional Formatting (While And For Loops)

What will be the output of the following Python code snippet? x = 2 for i in range(x): x -= 2 print (x)

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option B • 0 -2

Related Computer Questions

What does the term HTTPS mean? Which Dynamic Programming problem requires constructing a solution by combining the solutions of overlapping subproblems? In method overloading, can methods have the same name and the same return type if their parameter types are different? Which keyword is used to prevent an object from being copied in C++? Which of these operations have same complexities?