+ 1

Python arithmetic problem

I am new to Python, and I have an arithmetic quiz to execute but I don't how to write that in Python, I appreciate it if someone could guide me to solve the problem.√(25d)/(bd)1/3 This is the question.

8th Jan 2024, 2:00 PM
Robin Marma
Robin Marma - avatar
6 ответов
+ 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.
8th Jan 2024, 4:38 PM
Chris Coder
Chris Coder - avatar
+ 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!
8th Jan 2024, 2:49 PM
Tibor Santa
Tibor Santa - avatar
+ 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.
8th Jan 2024, 2:58 PM
Robin Marma
Robin Marma - avatar
0
Thanks for your time i appreciate your help, i found the answer.
8th Jan 2024, 5:24 PM
Robin Marma
Robin Marma - avatar
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
8th Jan 2024, 5:46 PM
Rain
Rain - avatar
0
((25*d)/(bd)*(1/3))**(2)
10th Jan 2024, 10:35 AM
abhijit anand mishra
abhijit anand mishra - avatar