0

how does an Exponentiation operator ** work in python?

I can't understand this one:(

27th May 2019, 5:13 AM
Rebecca.S.Mathews
Rebecca.S.Mathews - avatar
4 Respuestas
+ 2
CoderGirl as you edited firstly thanks for that. In python exponent operator is ** which is work as power. 2**3 means 2 to the power 3 which is equate 2 * 2 * 2=8 so this is how exponent works
27th May 2019, 6:40 AM
MsJ
MsJ - avatar
+ 3
In C language it is worked by pow() function in python it works with ** exponential operator Eg. pow(2,3) =8 in c 2**3=8 in python P. S please try to describe about language too with appropriate tags
27th May 2019, 6:22 AM
MsJ
MsJ - avatar
+ 1
# your code goes here dolarr = 0.01*(2**30) print(dolarr) This is write answer
15th Feb 2021, 9:50 AM
Kamal eldin Mahgoub Kamal eldin Eltayeb
Kamal eldin Mahgoub Kamal eldin Eltayeb - avatar
0
thanks
27th May 2019, 7:04 AM
Rebecca.S.Mathews
Rebecca.S.Mathews - avatar