That is a terrible title. ~ I've been working through Coursera's bioinformatics 1 course with P.Compeau and P.Pevzner. It has a coding component on its companion stepic website. I just spent the past half hour meticulously debugging why I was getting correct answers on the small case sets, but wrong answers on the larger test … Continue reading Readline Stripping [python]
My understanding of this post on s/o Iterators: An object whose items can be read one by one. Values stored in memory (can be expensive), and values are re-accessable Generators: are iterators, but can only be iterated only once, because data isn't stored in memory, but created on the fly. Yield: is like return, but … Continue reading Python: Iterator, Generator, Yield
Say that I have an array a list of ints and I want to print its contents on a single line, without any comments or brackets. input: arr = [1,2,3,4] *????* output: 1 2 3 4 A simple print won't do, and iterating prints will print each element on its separate line. Following stackoverflow, I tried … Continue reading Python: List of ints printing on one line
This is the excerpt for your very first post.