English
Tamil Nadu Board of Secondary EducationHSC Science Class 12

Explain the following built-in function. pow() - Computer Science

Advertisements
Advertisements

Question

Explain the following built-in function.

pow()

Answer in Brief

Solution

Function Description Syntax Example
pow() Returns the computation of ab i.e. (a**b) a raised to the power of b. pow (a,b)
a = 5
b = 2
c = 3.0
print (pow (a,b))
print (pow (a,c))
print (pow (a+b,3))
Output:
25
125.0
343
shaalaa.com
Introduction to Python Functions
  Is there an error in this question or solution?
Chapter 7: Python functions - Evaluation [Page 113]

APPEARS IN

Samacheer Kalvi Computer Science [English] Class 12 TN Board
Chapter 7 Python functions
Evaluation | Q 3. (e) | Page 113
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×