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: The midpoint M is located at (6,4)
==============================================
Explanation:
First focus on just the x coordinates of points S and T, which are 5 and 7 respectively. Add them up to get 5+7 = 12. Then divide that in half to get 12/2 = 6. This is the x coordinate of the midpoint.
Repeat for the y coordinates of S and T. First add up the values: 7+1 = 8. Then divide by 2 to get 8/2 = 4. This is the y coordinate of the midpoint.
The two results we get are then written as an ordered pair getting us the answer (6,4)
Answer:
x =14
Step-by-step explanation:
14x+24=18x-32
Subtract 14x from each side
14x-14x+24=18x-14x-32
24 = 4x -32
Add 32 from each side
24+32=4x-32+32
56 = 4x
Divide each side by 4
56/4 = 4x/4
14=x
Hey there find an image attached..