![Computers and Technology](/tpl/images/cats/informatica.png)
Computers and Technology, 27.08.2021 15:50, kim95207
Given three floating-point numbers x, y, and z, output x to the power of z, x to the power of (y to the power of z), the absolute value of (x minus y), and the square root of (x to the power of z). Output each floating-point value with two digits after the decimal point, which can be achieved as follows:
print('%0.2f %0.2f %0.2f' % (your_value1, your_value2, your_value3))
Ex: If the input is:
5.0 6.5 3.2
Then the output is:
2.24 3.30 24.00
my code so far
import math
x = input(int)
y = input(int)
z = input(int)
your_value1 = math. sqrt((x))
your_value2 = abs((y-z))
your_value3 = math. factorial(math. ceil((z)))
print('%0.2f %0.2f %0.2f' % (your_value1, your_value2, your_value3))
returns the error code
Traceback (most recent call last):
File "main. py", line 6, in
your_value1 = math. sqrt((x))
TypeError: must be real number, not str
![answer](/tpl/images/cats/otvet.png)
Answers: 3
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 21.06.2019 19:30, muffinman97
Which of the following are types of formatting you can apply to a spreadsheet? choose all that apply.
Answers: 3
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
Do you know the correct answer?
Given three floating-point numbers x, y, and z, output x to the power of z, x to the power of (y to...
Questions in other subjects:
![Konu](/tpl/images/cats/himiya.png)
![Konu](/tpl/images/cats/health.png)
Health, 12.03.2021 09:00
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 12.03.2021 09:00
![Konu](/tpl/images/cats/istoriya.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 12.03.2021 09:00
![Konu](/tpl/images/cats/en.png)
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/en.png)
English, 12.03.2021 09:00
![Konu](/tpl/images/cats/istoriya.png)
History, 12.03.2021 09:00