Seq = []
Head = []
for line in range (0, len(text)):
if line in '>':
Head.append(line)
else:
Seq.append(line)
I am trying to append the header of FASTA sequences and the nucleotide sequence and separate them on a list. I don't know how to say that if line has '>', add to Head, else add to Seq