Home / MCQ Bank / Computer
Computer Exception Handling In Python Difficulty: Medium

Compare the following two Python codes shown below and state the output if the input entered in each case is -6? 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))

Select the correct option to test your answer:

More Computer Questions

What is the short cut key to highlight the entire column? Why do we require hamming codes? What will be the output of the following C code? #include<stdio.h> enum class { a,b,c }; enum class m; main() { printf("%d",sizeof(m)); } SQL Server program code that is executed instead of an SQL command that needs to be processed is called a(n): Which sorting algorithm has a time complexity of O(n log n) in the worst case and is not stable?