Re: script output appears correct but still raises, AssertionError

2017-06-07 Thread john polo
ChrisA, Thank you for pointing out my error: using print() when I should have used return(). John -- https://mail.python.org/mailman/listinfo/python-list

Re: script output appears correct but still raises AssertionError

2017-06-06 Thread Chris Angelico
On Wed, Jun 7, 2017 at 10:58 AM, john polo wrote: > I am learning about assertions. I wrote a small script that takes 2 inputs, > an amino acid sequence and one residue symbol. The script should return what > percent of the sequence is residue in output. The point of this script is to > use assert

script output appears correct but still raises AssertionError

2017-06-06 Thread john polo
Python People, I am learning about assertions. I wrote a small script that takes 2 inputs, an amino acid sequence and one residue symbol. The script should return what percent of the sequence is residue in output. The point of this script is to use assert for debugging. My script seems to work