Home / CSE MCQs / Python MCQs :: Discussion

Discussion :: Python MCQs

  1. The output of the code shown below is:

    int('65.43')
  2. A.
    ImportError
    B.
    ValueError
    C.
    TypeError
    D.
    NameError

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    The snippet of code shown above results in a value error. This is because there is an invalid literal for int() with base 10: '65.43'.


Be The First To Comment