LogiQuest
Back to Exceptions
2

What is the output of the following code?

try:
    x = int('abc')
except ValueError:
    x = -1
print(x)
Easy

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.