Skip to content
← Back to Community
can you do exponents in python?
Profile icon
[deleted]

so in python there is +,-,* and ÷ right? I'm just wondering if you can do exponents.

Answered by Roar123 [earned 5 cycles]
View Answer
Voters
Profile icon
TyceErickson
Profile icon
Coder100
Comments
hotnewtop
Profile icon
Roar123

Use **.
Ex. 5 ** 3 = 125

Profile icon
[deleted]

@Roar123 thanks!!!

Profile icon
Roar123
Profile icon
staticvoidliam7

would'nt you do ^x ? @Roar123

Profile icon
[deleted]

@LiamDonohue but it doesn't work I tried it

Profile icon
staticvoidliam7
Profile icon
[deleted]

plz answer.