Using multiple arguments for string formatting in Python (e.g., ‘%s … %s’)

I have a string that looks like '%s in %s' and I want to know how to seperate the arguments so that they are two different %s. My mind coming from Java came up with this:

'%s in %s' % unicode(self.author),  unicode(self.publication)

But this doesn’t work so how does it look in Python?

8 Answers
8

Leave a Comment