Can someone help me in correcting this error? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can someone help me in correcting this error?

it's on line 9 . related to power function https://code.sololearn.com/cHsHdwtkVeng/?ref=app

4th Sep 2018, 5:08 PM
Jinyoongisaranghe
Jinyoongisaranghe - avatar
1 Answer
+ 3
You have to cast the result of math.pow to integer. Just put (int) in front of math.pow
4th Sep 2018, 5:25 PM
P.W.R.
P.W.R. - avatar