NIELIT O Level Exam

<p>What will be the output of the code given below?</p><pre>import math as m<br>print(m.pi)</pre>

What will be the output of the code given below?

import math as m
print(m.pi)


निम्न code का output क्या होगा?

import math as m
print(m.pi)

A. 3.141592654

B. math.pi

C. Error

D. None




Correct Answer is :

A. 3.141592654



Explanation
m is an alias for the math module, and m.pi gives the value of π.

m, math module का alias है और m.pi π की value देता है।
Latest Current Affairs 2026 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad