Report Bug

Qus

What will be the output of the following ?

import math
print(math.fact(5))
Qus

निम्नलिखित कोड का आउटपुट क्या होगा?

import math
print(math.fact(5))


A. 120
B. 25
C. 1,2,3,4,5
D. Error


Solution
D. Error



Explanation

this code will generate AttributeError: module 'math' has no attribute 'fact'

because there is no any fact() function in math module

CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad