Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Accidental Data Scientist

Authors: Amy Affelt

1st Edition

1573877077, 9781573877077

More Books

Students also viewed these Databases questions