Answer:
def validateID(this_id):
is_valid = 0
checksum = 0
n = int(this_id)
count=1
while(n!=0):
d=int(n%10)
if(count%2==0):
d=d*2
if(d<10):
checksum=checksum+d
else:
while(d!=0):
x = int(d%10)
checksum = checksum + x
d=int(d/10)
else:
checksum=checksum+d
count=count+1
n=int(n/10)
if(checksum%10==0):
is_valid=1
return is_valid, checksum
def main():
test_id = "176248"
is_valid, checksum = validateID(test_id)
if(is_valid==1):
print(test_id+" is valid and checksum is "+str(checksum))
else:
print(test_id+" is not valid and checksum is "+str(checksum))
test_id = "79927398713"
is_valid, checksum = validateID(test_id)
if(is_valid==1):
print(test_id+" is valid and checksum is "+str(checksum))
else:
print(test_id+" is not valid and checksum is "+str(checksum))
test_id = "6080320539447211"
is_valid, checksum = validateID(test_id)
if(is_valid==1):
print(test_id+" is valid and checksum is "+str(checksum))
else:
print(test_id+" is not valid and checksum is "+str(checksum))
return
if __name__ == '__main__':
main()
7+5= 12 ones. Or one ten and 2 ones. They made 12.
I assume you are asking what percent is 255 out 0f 300. And the answer to that is 85%
<span>89 is the correct answer.
</span>
Answer:

And using the probability mass function we can find the individual probabiities
And replacing we got:

And for this case yes we can conclude that 1 a significantly low number of adults requiring eyesight correction in a sample of 15 since the probability obtained is very near to 0
Step-by-step explanation:
Let X the random variable of interest "number of adults who need correction", on this case we now that:
The probability mass function for the Binomial distribution is given as:
Where (nCx) means combinatory and it's given by this formula:
We want to find this probability:

And using the probability mass function we can find the individual probabiities
And replacing we got:

And for this case yes we can conclude that 1 a significantly low number of adults requiring eyesight correction in a sample of 15 since the probability obtained is very near to 0