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:
Please read the answers below
Step-by-step explanation:
Let's use x for writing the inequalities asked:
A number is less than 2:
x < 2
A number is greater than 6 and less than or equal to 9:
6 < x ≤ 9
Answer:
2, 2, 3, 5, 7 that is the farthest you can go
Step-by-step explanation:
2,2,3,5,7 prime factorization of 420 but impossible to get 9 factors
Answer:
30,40,50
Step-by-step explanation:
If it is a right triangle then the pythagorean theorum would work
a^2+b^2=c^2
30^2+40^2=50^2
900+1600=2500
2500=2500
this means that 30,40,50 is the right answer
*******extra********
also 30,40,50 is a pythagorean triplet
pythagorean triplets form right angles
this one came from the original triplet of 3,4,5---just multiply by 10
Let us manually add the given numbers.
450
790
123
____
1363
Therefore we see that the correct answer 1363 which is far
from what Jill got which is only 1163.
Therefore the answer is No, the sum should be 1363 (closer
to 1400).