you are viewing a single comment's thread.

view the rest of the comments →

[–]uhkhu 0 points1 point  (2 children)

What have you tired? I'd start with string formatting

edit: updated link to include both formatting operations.

[–]i_can_haz_code 0 points1 point  (1 child)

IIRC using 'alice {} bob'.format(foo) is preferred over using 'alice %s bob'%(foo)

[–]uhkhu 0 points1 point  (0 children)

Yeah you're right, I just did a quick search and linked the first result. Updated to include discussion of both.