What will be the output of the following Python code:

a=5.2
try:
  print(a)
except NameError:
  print("Variable a is not defined")
except ValueError:
  print("The value of a must be an integer")

1
The value of a must be an integer
2
Variable a is not defined
3
5.2
4
5

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation