Question: List values _ list contains integers read from input, representing data samples from an experiment. For each element in values _ list: If the element's
List valueslist contains integers read from input, representing data samples from an experiment. For each element in valueslist:
If the element's value is greater than then increment countaccepted and output 'Sample followed by the element's
index, and is accepted'.
Otherwise, output 'Sample followed by the element's index, and is rejected'.
Click here for example
# Read input and split input into tokens
tokens inputsplit
valueslist
for token in tokens:
valueslist.appendinttoken
printfRaw samples: valueslist
countaccepted
Your code goes here
printfTotal accepted samples: countaccepted
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
