What is the code in python simple calculator to perform exponent operator | Sololearn: Learn to code for FREE!

0

What is the code in python simple calculator to perform exponent operator

10/3/2020 1:31:46 PM

Sandhya Rani

3 Answers

New Answer

+5

Tag Python rather than 'hajaj' please. If you want to mention a friend, then type @ followed by their name in the Description. Mentions don't work in question title nor the tags.

+2

Use the ** to show an exponential operator. Eg: print(5**2) Gives 25

+1

** is the power opearor in python.. Ex : 2**3 =>2 to the power of 3 print(2**3) Output : 8