Tag: Common

  • Python Questions and Answers – Exception Handling – 2

    Python Questions and Answers – Exception Handling – 2

    Python Multiple Choice Questions & Answers (MCQs) focuses on “Exception Handling – 2”. Q 1. The following Python code will result in an error if the input value is entered as -5. assert False, ‘Spanish’A. TrueB. False Show Answer Answer:-A. True Explanation The code shown above results in an assertion error. The output of the…