Question: 7 . 1 . 2 : Writing math calculations. 5 4 3 9 0 0 . 4 0 7 6 5 7 0 . qx

7.1.2: Writing math calculations.
543900.4076570.qx3zqy7
Jump to level 1
Compute: r=p2-q
Click here for example
Note: Functions in the math module can be accessed using dot notation. Ex: The constant pi is accessed via math. pi.
1 import math
2
p= float(input())
4q= float(input())
5
6r= math.sqrt(4)-3
7
8
9pr(f'r={r:.1f}') # Outputs r with 1 decimal place.
 7.1.2: Writing math calculations. 543900.4076570.qx3zqy7 Jump to level 1 Compute: r=p2-q

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!