Top.Mail.Ru
Python
? ?
LiveJournal for python.
View:Personal Journal.
View:Friends.
View:Calendar.
Missed some entries? Then simply jump to the previous day or the next day.

Wednesday, December 21st, 2005

Time:4:25 pm.
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?
Comments: Read 8 orAdd Your Own.

LiveJournal for python.

View:User Info.
View:Friends.
View:Calendar.
View:Memories.
Missed some entries? Then simply jump to the previous day or the next day.

Image