What will be the output of the following Python program?

print(17 % 5)
                        

Options

  • A. 2
  • B. 3
  • C. 3.4
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

A. 2

Detailed Explanation

The % operator returns the remainder of division. The remainder of 17 divided by 5 is 2.