For example I have an array of two elements array = ['abc', 'def'].
How do I print the whole array with just one function. like this: print "%s and %s" % array
Is it possible? I have predefined number of elemnts, so i know how many elements would be there.
EDIT:
I am making an sql insert statement so there would be a number of credentials, let's say 7, and in my example it would look like this:
("insert into users values(%s, \'%s\', ...);" % array)