Image

Imagecascando wrote in Imagepython_dev

I have a really quick and stupid question.

Say I have a string called final_sequence. Maybe there are 20 characters in this string. I want to print the string, inserting 5 characters from it followed by a space, followed by 5 more characters (i.e., ATCCG ATGAA instead of ATCCGATGAA).

I'm trying this
print "\n\nYour DNA sequence is  %5s" % (final_sequence)
. It's obviously not working and I have no idea what I'm doing. Help?