I'm trying to print a new line while using % formatting. This is the code I have:
return '%s\n%s\n%s\nScore: %d' % (seqA, matches, seqB, score)
But that prints:
'ATTCGT\n|| |\nATCTAT\nScore: 2'
Is there a way to print new lines using this method?
reprfunction, of the result of the previous line evaluated) with actual output of your script. Your code doesn't actually output anything.