print( 9 ** (1/2) ) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

print( 9 ** (1/2) )

How calculate float in exponentiation

6th Jan 2021, 10:39 AM
nive
2 Answers
+ 3
nivi , your expression will evaluate to: print(8 **1/3) # 2.666 but i think you mean this: (cube root) print(8**(1/3)) # 2.0
6th Jan 2021, 1:59 PM
Lothar
Lothar - avatar
0
8 **1/3
6th Jan 2021, 1:00 PM
nive