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
We have to find x and x is the hypotenuse. We use this formula:
hyp²=side²+side²
So:
hyp²=side²+side²
hyp²= 12²+9²
hyp²= 225
hyp²= √225
hyp= 15
Therefore, the hypotenuse is 15 and x is 15.
HOPE THIS HELPS!
HAVE A GR8 EVENING ;-)
Answer:
25 minute
Step-by-step explanation:
Speed is the ratio of the total distance traveled to the total time taken to reach this distance. The formula for speed is:
Speed = total distance / total time taken
The total distance covered by the sloth = 60 ft, and the time taken = 5 minutes, hence:
Speed = total distance / total time taken
speed of the sloth = 60 ft / 5 minutes = 12 ft per minute.
We can calculate the time taken for the sloth to travel the length of the football field (i.e. 300 ft)
speed = distance / time
12 ft/minute = 300 ft / time
time = 300 ft / (12 ft/minute)
time = 25 minute
Tell me if you have any questions or you need a step by step explanation