What is the output of the following code?
def date(x):
if x<1 or x>31:
raise ValueError("Invalid Value")
print(x)
date(0)
1
0
2
Error
3
ValueError: Invalid Value
4
SyntaxError
What is the output of the following code?
def date(x):
if x<1 or x>31:
raise ValueError("Invalid Value")
print(x)
date(0)