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:
73
Step-by-step explanation:
Givens
d = 3
Equation 7d^2 + 10 = ?
Solution
7*3*3 + 10
7*9 + 10
63 + 10 = 73
Answer:
see below
Step-by-step explanation:
f(x) = 5x^3 +1, g(x) = – 2x^2, and h(x) = - 4x^2 – 2x +5
f(-8) = 5(-8)^3 +1 = 5 *(-512) +1 =-2560+1 =-2559
g( -6) = -2 ( -6) ^2 = -2 ( 36) = -72
h(9) = -4( 9)^2 -2(9) +5 = -4 ( 81) -18+5 = -324-18+5=-337
So an example
least common multipule is like what is
the smallest number both will fit into
example, 6 and 10, least common
multilule is 30 because 6*5=30 and 3*10=30
so 3 and 4
factor each
3=3
4=2*2
so we have to have 2*2*3 which is 12
12 is least common multiplule