What will be the output of the following Python code?

int('65.43')

a) ImportError
b) ValueError
c) TypeError
d) NameError

1 thought on “What will be the output of the following Python code?”

  1. 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’.

Leave a Comment