- Home /
- Python /
- CYB130 Object-oriented Scripting Language /
- CYB/130 Week 1 Python LAB 2.32: Using math functions
Details
CYB/130 Week 1 Python LAB 2.32: Using math functions
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('{:.2f} {:.2f} {:.2f} {:.2f}'.format(your_value1, your_value2, your_value3, your_value4))
Ex: If the input is:
5.0
1.5
3.2
Then the output is:
172.47 361.66 3.50 13.13
Additional Information
Special Price | $3.00 |
---|
Product Tags
Use spaces to separate tags. Use single quotes (') for phrases.
Check items to add to the cart or select all
-
CYB/130 Week 1 Python LAB 2.14: Formatted output: Hello World!
Regular Price: $5.00
Special Price $3.00
-
CYB/130 Week 1 Python LAB 2.15: Formatted output: No parking sign
Regular Price: $5.00
Special Price $3.00
-
CYB/130 Week 1 Python LAB 2.16: Input: Welcome message
Regular Price: $6.00
Special Price $3.00
-
CYB/130 Week 1 Python LAB 2.17: Input: Mad Lib
Regular Price: $6.00
Special Price $3.00
-
CYB/130 Week 1 Python LAB 2.29: Divide by x
Regular Price: $8.00
Special Price $3.00
-
CYB/130 Week 1 Python LAB 2.30: Driving costs
Regular Price: $8.00
Special Price $3.00
-
CYB/130 Week 1 Python LAB 2.31: Expression for calories burned during workout
Regular Price: $8.00
Special Price $3.00
You have no items in your shopping cart.