6 Respostas
+ 4
Python is case-sensitive, import math, not Import math
The correct function to use is math.sqrt(), not Math.sqrt()
import math
print(math.sqrt(25 * b) / (b *d )** 1/3)
Also you will need to assign b and d a value before the print statement.
+ 1
Welcome to Sololearn.
This is a self-learning platform, not a homework solutioning service.
Here is the link to the beginner Python course, where you will find the answer to your question.
https://www.sololearn.com/learn/courses/python-introduction
Happy learning!
+ 1
I am not asking answer, I am asking how to write that in Python. I wrote like this in python, Import math
print(Math.sqrt(25*b)/(b*d)**1/3) but it shows error.
0
Thanks for your time i appreciate your help, i found the answer.
0
Robin Marma ,
Better put parentheses around (1/3).
print(9 ** 1 / 3) # 3
print((9 ** 1) / 3) # 3
print(9 ** (1 / 3)) # 2.080083823051904
0
((25*d)/(bd)*(1/3))**(2)