i = 1
f = open ('rosalind_ini5(1).txt')
for line in f.readlines():
if i % 2 == 0:
print line
i += 1
How do i get output without breaks between the lines?
Result:
Other things just make you swear and curse
When you're chewing on life's gristle, don't grumble give a whistle
This
Op zaterdag 18 februari 2017 18:38:43 UTC+1 schreef TTaglo:
> i = 1
> f = open ('rosalind_ini5(1).txt')
> for line in f.readlines():
> if i % 2 == 0:
> print line
> i += 1
>
>
> How do i get output without breaks between the lines?
>
&
Op zaterdag 18 februari 2017 18:55:46 UTC+1 schreef boB Stepp:
> On Sat, Feb 18, 2017 at 11:38 AM, TTaglo wrote:
> > i = 1
> > f = open ('rosalind_ini5(1).txt')
> > for line in f.readlines():
> > if i % 2 == 0:
> > print line
> >