0
Import math print(math.pow(27,1/3))
How to solve it??
6 ответов
+ 2
Division results in floating points.
print(3**3) // 27
print(3**(9/3)) // 27.0
+ 1
27 is equal to (3)3**1/3
So answer is 3.0
Here , ** is used for exponential power.
It is simple maths.
+ 1
Ansari Afzal that was just an example and I did not try to bring the same output. The point I was trying to make is that since the code has 1/3 which is division operation, returns a floating point value so any mathematical operation performed with it will result in a floating point value.
0
How the result comes in Floating??
0
Avinesh thnx brother
- 1
No bro answer is 3.0