USING PYTHON:
Make a function called myRoot, that accepts two parameters, anumber and the root of that number you desire as a return value(Use integers, you can avoid negatives and fractions). Forexample:
To get the cube root of 512 (it's 8) I would call -myRoot(512,3)
For the 4th root of 16 (2), myRoot(16,4), etc.
Using this function tell me what the 12th root of 12,345 is in acomment at the base of the code.
(Hint: read the math module documentation for a function to helpyou do this or feel free to do it yourself)
USING PYTHON: Make a function called myRoot, that accepts two parameters, a number and the root of that number you desir
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am