SyntaxFix
Write A Post
Hire A Developer
Questions
list2 = ['%sbar' % (x,) for x in list]
And don't use list as a name; it shadows the built-in type.
list