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:
wait is that rlly u?
Step-by-step explanation:
its me ethan
<em>Greetings from Brasil...</em>
The average for a set of 9 elements will be
(A + B + C + D + E + F + G + H + I) ÷ 9 = 20
Let's make (A + B + C + D + E + F + G + H + I) like S
<em>(I chose S to remember a sum)</em>
Let us think.....
S ÷ 9 = 20
S = 20 × 9
S = 180
So, (A + B + C + D + E + F + G + H + I) = 180
According to the statement, we will include a number (element J) in the sum to obtain a mean of (20 - 4), that is:
<h3>(A + B + C + D + E + F + G + H + I +
J) ÷ 10 = (20 - 4)</h3>
as seen above, (A + B + C + D + E + F + G + H + I) = 180, then
(180 + J) ÷ 10 = 16
(180 + J) = 160
J = 160 - 180
<h2>J = - 20</h2><h2 />
So, including the number - 20 <em>(minus 20)</em> in the original mean we will obtain a new mean whose result will be 16
Answer:
12/13
Step-by-step explanation:
There are 52 cards in the deck
4 are aces
That leaves 52-4 or 48 that are not aces
P(not an aces) = cards that are not aces / total
= 48/52
=12/13
Answer:
Step-by-step explanation:
This is more easily understood if you take out a common factor of -1
-1(x^2 + 15x + 56)
7*8 = 56
7 + 8 = 56
-1 (x +8)(x+7)