Answer:
Step-by-step explanation:
We can get this done by using the code
def digits(n):
count = 0
if n == 0:
return 1
while (n > 0):
count += 1
n= n//10
return count
Also, another way of putting it is by saying
def digits(n):
return len(str(n))
------------------------------------------
print(digits(25)) # Should print 2
print(digits(144)) # Should print 3
print(digits(1000)) # Should print 4
print(digits(0)) # Should print 1
Doing this way, we've told the system to count the number of figures that exist in the number. If it's 1000 to 9999, then it records it as 4 digits. If it's 100 - 999, then it records it as 3 digits. If it's 10 - 99, it records as 2 digits. If it's 0 - 9, then it has to record it as a single digit.
Thanks
for estimating round both the price of shoes and the percentage to round numbers
97.65 is close to 100, so use 100 for the price of shoes
68% is close to 70 so use 70%
then multiply 100 by 70 %,
100 *70% = 70 dollars
so Isaac would pay around 70 dollars
The value of given expression is: 3
<h3>What is exponents and powers?</h3>
Exponent refers to the number of times a number is used in a multiplication. Power can be defined as a number being multiplied by itself a specific number of times.
9*(15)³/45 *
/9
= 3²* 3³*5³/5² * 3² * 3² * 5
= 
= 3*1
=3
Learn more about exponents and power here:
brainly.com/question/15722035
#SPJ1
Perhaps the easiest way to find the midpoint between two given points is to average their coordinates: add them up and divide by 2.
A) The midpoint C' of AB is
.. (A +B)/2 = ((0, 0) +(m, n))/2 = ((0 +m)/2, (0 +n)/2) = (m/2, n/2) = C'
The midpoint B' is
.. (A +C)/2 = ((0, 0) +(p, 0))/2 = (p/2, 0) = B'
The midpoint A' is
.. (B +C)/2 = ((m, n) +(p, 0))/2 = ((m+p)/2, n/2) = A'
B) The slope of the line between (x1, y1) and (x2, y2) is given by
.. slope = (y2 -y1)/(x2 -x1)
Using the values for A and A', we have
.. slope = (n/2 -0)/((m+p)/2 -0) = n/(m+p)
C) We know the line goes through A = (0, 0), so we can write the point-slope form of the equation for AA' as
.. y -0 = (n/(m+p))*(x -0)
.. y = n*x/(m+p)
D) To show the point lies on the line, we can substitute its coordinates for x and y and see if we get something that looks true.
.. (x, y) = ((m+p)/3, n/3)
Putting these into our equation, we have
.. n/3 = n*((m+p)/3)/(m+p)
The expression on the right has factors of (m+p) that cancel*, so we end up with
.. n/3 = n/3 . . . . . . . true for any n
_____
* The only constraint is that (m+p) ≠ 0. Since m and p are both in the first quadrant, their sum must be non-zero and this constraint is satisfied.
The purpose of the exercise is to show that all three medians of a triangle intersect in a single point.