0% found this document useful (0 votes)
4 views1 page

Python q3

The document presents a Python program for calculating the exponentiation of a number based on user input. It includes the algorithm, the code, and an example output showing the calculation of 3 raised to the power of 4, resulting in 81. The report concludes with a successful demonstration of the program's functionality.

Uploaded by

tylerbrownman16
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

Python q3

The document presents a Python program for calculating the exponentiation of a number based on user input. It includes the algorithm, the code, and an example output showing the calculation of 3 raised to the power of 4, resulting in 81. The report concludes with a successful demonstration of the program's functionality.

Uploaded by

tylerbrownman16
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Kodin Code Session Report - shiven kumar

Date: 2025-09-27 10:27:56

QUESTION
3. To write a Python program for exponentiation (power of a number). Take user input.

AIM

ALGORITHM

SOLUTIONS
File: [Link]
a = float(input("enter the base number:"))
b = float(input("enter the power to the number to execute calculation:"))
c = a**b
print(f"the exponential output of {a} to the power {b} is:{c}")

PROGRAM OUTPUT
enter the base number:3
enter the power to the number to execute calculation:4
the exponential output of 3.0 to the power 4.0 is:81.0

CONCLUSION

You might also like