Computers and Technology
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
Answers: 3

Other questions on the subject: Computers and Technology

image
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
Computers and Technology, 22.06.2019 19:00, sere50
Stacy works as blank. the most important soft skill she needs for this role is blank.
Answers: 3
image
Computers and Technology, 23.06.2019 09:30, nsjcbdhcb
Light travels at a speed of 186,000 miles a second. the distance light travels in a year is 5,865,690,000,000 miles/year 5,865,695,000,000 miles/year 58,656,950,000,000 miles/year 6,789,000,0000 miles/year
Answers: 1
image
Computers and Technology, 23.06.2019 15:10, cathyjuan
What role did women fill during world war ii?
Answers: 1
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
Health, 12.03.2021 09:00
Konu
Mathematics, 12.03.2021 09:00