1.

What is the output of the code shown below? def getMonth(m): if m<1 or m>12: raise ValueError("Invalid") print(m) getMonth(6)

A. ValueError
B. Invalid
C. 6
D. ValueError(“Invalid”)
Answer» D. ValueError(“Invalid”)


Discussion

No Comment Found