What will be the output of len("BPSC") in Python?

print(len("BPSC"))
                        

Options

  • A. 3
  • B. 4
  • C. 5
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

B. 4

Detailed Explanation

Explanation: len() returns the number of characters. BPSC contains 4 characters.