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:
you subtract 14 from -9 and that justifies it
Step-by-step explanation:
Hope this helps
Answer:
15187.5=2000(1.5)^5
Step-by-step explanation:
So right now he has 2000 in his saving each year it grows by 1.5 so by year 5 it should be
15187.5 in his savings
hope I did it right
I would do the work out but it’s a lot of work so heres a picture the work is already done.
Yes they are , since they are very common in ones body