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: 5^5 = 3125
Step-by-step explanation:
To the power of mostly means multiplying it by itself the number of times giving so for your problem it is 5 times itself 5 times so 5*5*5*5*5 = 3125
<span>The resent value, also called "discounted value," is the current worth of the camera. So, we know that the discounted value is $105.00.
The first price of the camera was $120.00.
This means that the price is decreased. In order to calculate the discount rate we should find out how many percent the camera was discounted. 105 from 120 is: 105/120*100=87.5
So, the discount is 100-87.5=12.5 %.
</span>
Answer:
The value of each of the other two numbers is 110.12
Step-by-step explanation:
244.84 - 24.6 = 220.24
220.24 divided by half is 110.12
The value of the other two numbers is 110.12