Ask coding questions

← Back to all posts
can you do exponents in python?
[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
TyceErickson
Coder100
Comments
hotnewtop
Roar123

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

[deleted]

@Roar123 thanks!!!

Roar123
staticvoidliam7

would'nt you do ^x ? @Roar123

[deleted]

@LiamDonohue but it doesn't work I tried it

staticvoidliam7

ah ok @blackjkl

[deleted]

plz answer.