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:
no solution
Step-by-step explanation:
no solution x=0
Answer:
m∠z= 58.7
Step-by-step explanation:
Remember, all triangles sum up to 180 degrees.
So, the equation would be: 31.3+90+m∠z= 180.
Step 1- Add to simplify.
(31.3+90)+m∠z= 180
121.3+m∠z= 180
Step 2- Subtract to both sides.
121.3+m∠z= 180
-121.3 -121.3
m∠z= 58.7
Answer:
See below. <u><em>I assume that (x) = 8x2 - 7x + 3 is really (x) = 8x^2 - 7x + 3</em></u>
Step-by-step explanation:
Substitute the value of x given in f(x) into the equation f(x) = 8x^2 - 7x + 3
For example, f(0) would be f(0) = 8(0)^2 - 7(0) + 3. f(0) = 3
f(-2) would be f(-2) = 8(-2)^2 - 7(-2) + 3.
= 8*4 + 14 +3
= 32 + 17 therefore f(-2) = 49
<u>x</u> <u>f(x)</u>
-2 49
-1 18
0 3
1 4
2 21
CAN SOMEONE PLEASE HELP ME ANSWER THIS QUESTION