New course! Every coder should learn Generative AI!
Try a free lesson0
Why 9**(1/2) gave answer as 3.0 and not 3?
2 Answers
+ 3
Because you use power float 0.5 (which then leads to square root). If you use whole number as power , then resulting value will be type int.
0
thank you for answering