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:
64.65% probability of at least one injury commuting to work in the next 20 years
Step-by-step explanation:
In a Poisson distribution, the probability that X represents the number of successes of a random variable is given by the following formula:

In which
x is the number of sucesses
e = 2.71828 is the Euler number
is the mean in the given interval.
Each day:
Bikes to work with probability 0.4.
If he bikes to work, 0.1 injuries per year.
Walks to work with probability 0.6.
If he walks to work, 0.02 injuries per year.
20 years.
So

Either he suffers no injuries, or he suffer at least one injury. The sum of the probabilities of these events is decimal 1. So

We want
. Then

In which



64.65% probability of at least one injury commuting to work in the next 20 years
Answer:
242 Hamburgers, 374 Cheeseburgers
Step-by-step explanation:
Step 1: 616/2-66=242 Hamburgers
Step 2: 616-242=374 Cheeseburgers
Step 3: Check Work 242+374=616
Answer:
43cm²
Step-by-step explanation:
let's first consider the area of a square.
the area is L² which means all sides are equal so we take the length times the breadth which is both equal because like we said all sides are equal.
so to find the side of the square using the area, we take the square root of both of the area.

and also

so we have the height of the triangle as 5cm and the base is 4.2cm.
now, from the triangle, since we have two sides and it's a right-angled, we can use Pythagoras' formula.

so the side 6.53cm is also the same side as the largest triangle. Since it's a square, all sides are equal. So we find the area of the largest triangle by using the formula
Area = L²
Area = 6.53²
Area = 42.6cm
the nearest cm square
Area = 43cm²