CODE 1
import math
num=int(input("Enter a number of whose factorial you want to find"))
print(math.factorial(num))
CODE 2
num=int(input("Enter a number of whose factorial you want to find"))
print(math.factorial(num))
a) ValueError, NameError
b) AttributeError, ValueError
c) NameError, TypeError
d) TypeError, ValueError
Compare the following two Python codes shown below and state the output if the input entered in each case is -6?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Compare the following two Python codes shown below and state the output if the input entered in each case is -6?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!