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:
Like on a test if you get extra credit.
Step-by-step explanation:
Answer:
based on yahoo, cause my iq is like 10...the answer is B
Step-by-step explanation:
Answer:
$60
Step-by-step explanation:
So from the question, we need to find the fixed amount for the tv's. So we have to make an equation, and don't forget to add the extended warranties:
11(x + 25) = 935
x will represent a tv, and the 25 is the extended warranty for a tv, since the questions states 11 tv's with warranties is 935, the equation will look like that. Now lets slove:
11(x + 25) = 935
multiply
11x + 275 = 935
subtract 275 from both sides
11x = 660
divide both sides by 11
x = 60, each tv is $60