Compare the following two Python codes shown below and state the output if the input entered in each case is -6?
CODE 1import mathnum=int(input("Enter a number of whose factorial you want to find"))print(math.factorial(num)) CODE 2num=int(input("Enter a number of whose factorial you want to find"))print(math.factorial(num))
CODE 1import mathnum=int(input("Enter a number of whose factorial you want to find"))print(math.factorial(num)) CODE 2num=int(input("Enter a number of whose factorial you want to find"))print(math.factorial(num))Compare the following two Python codes shown below and state the output if the input entered in each case is -6?
CODE 1import mathnum=int(input("Enter a number of whose factorial you want to find"))print(math.factorial(num)) CODE 2num=int(input("Enter a number of whose factorial you want to find"))print(math.factorial(num)) Correct Answer ValueError, NameError
মোঃ আরিফুল ইসলাম
Feb 20, 2025