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
Answer:
73 m is equal to 730 dm
Step-by-step explanation:
We Need to convert 73 m into dm
We know that 1 meter is equal to 10 decimeter
We are given 73 m. Multiply it with 10 and we will get value in decimeter
73*10
= 730 decimeter
So, 73 m is equal to 730 dm
Answer:
y=-3/2x+6
Step-by-step explanation:
You can find the slope by taking two points on the graph, and making the one that occurs earlier in the graph (from left to right) the first point (x1, y1) and the one that occurs later in the graph the second point (x2, y2). The equation is m (or slope)=(y2-y1)/(x2-x1). I took the first two points in the table for this. m=(12-18)/-4-(-8)
the double negative on the bottom becomes an addition=> (12-18)/(-4+8)
the top simplifies to be -6 and the bottom simplifies to 4=>-6/4
this fraction can be reduced to -3/2, which is the slope of the graph.
Now, use point slope form (y-y1=m(x-x1)) to find the equation of the graph. Plug any coordinate on the graph in for x1 and y1 here. It should be correct as long as it is a point on the graph, but I am using the point (-8, 18) here.
=>y-18=-3/2(x-(-8))
the double negative in the parentheses becomes a positive=> y-18=-3/2(x+8)
distribute the -3/2 to every term in the parentheses=> y-18=-3/2x-12
add 18 to both sides, cancelling out the -18 on the left side of the equation=>y=-3/2x+6 (-12+18=6 to get 6 for b).
Therefore, the equation is y=-3/2x+6
Answer:
50y= -2248283
Step-by-step explanation:
used photo math
Answer: -10
Step-by-step explanation:
Difference between -17 & -7 should be
-17 - (-7)
-10