Multiple Choice
What is the output of the following code?
Sum = 0
For value in range(1,4) :
If value == 2:
Sum = sum**2
Sum += value
Print(sum)
A) 6
B) 12
C) 8
D) 16
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q10: Strings are compared using ASCII ordering.
Q11: Select the answer that should be used
Q12: To create an end-of-line comment, which symbol
Q13: It is good practice to import all
Q14: With what character does the print function
Q16: In Python, _MyVar15 is a valid variable
Q17: The expression primes = (2, 3, 5,
Q18: Indenting code that should be executed when
Q19: In a class definition, what type of
Q20: Standard functions and Python's library functions check