Why there is no any float while print('2**5') 32 where as 9**1/2 is a float 3.0 ?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why there is no any float while print('2**5') 32 where as 9**1/2 is a float 3.0 ??

I'm just a beginner I just came up with a doubt so please help me out

29th May 2021, 12:31 AM
Zuhair hasan Shaik
Zuhair hasan Shaik - avatar
1 Answer
+ 1
Because 1/2 produces a float
29th May 2021, 12:38 AM
Steven M
Steven M - avatar