🚀 Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X

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

What will be the output of following code ?

import math
abs(math.sqrt(36))
A)
B)
C)
D)

Explanation:

Let's break down the code:

import math
abs(math.sqrt(36))

Step-by-step explanation:

  1. math.sqrt(36):

    • This calculates the square root of 36, which is 6.0. In Python, math.sqrt() always returns a float value.
  2. abs():

    • The abs() function returns the absolute value of a number.
    • Since 6.0 is already positive, abs(6.0) will simply return 6.0.

Conclusion:

The output will be 6.0.

Answer:

(D) 6.0

Latest Updates