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:
B'(-7 , -2)
Step-by-step explanation:
First we must understand the coordinate-axis, when we want to move a point to the left or right we do it on the x-axis. to move up or down is on the y axis.
now if we move to the left we go to the negative and to the right the positive
as we are going to move to the left we have to subtract the value that he gave us (4) only to the part of x
B(-3 , -2)
-3 - 4 = -7
B'( -7 , -2)
Answer: x>-1
Step-by-step explanation:
Dotted line on the axis is covering y infinitely, so theres an inequality on x, and the line is at -1, so x should be > - 1
Answer:
The number of miles the train travels in an hour.
Step-by-step explanation:
Hope this helps!
It would be 9!!!
Hope that helps!!!