Python has you covered: my_string = ",".join(my_list)
HTH, Scott On Oct 4, 7:41 am, ashy <[email protected]> wrote: > Hi All, > > I am writing a django function in which I have a following list: > li = ['a','b','c'] > I want to create a string from the list which should look like > str = 'a,b,c' > > I plan to pass this string to not in () function of my sql query. > > Any Ideas? > > thanks > ashy -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

