Question: I have a list:

```
list1 = ['field1','field2','field3']

```

i have used different methods but i is of no help.

```
list1= ( " ".join( repr(e) for e in list1) )

```

but it is printing each character in the string as seperate word like 

```
"f","i","e","l","d".

```

But i want the output like:

```
list1='field1','field2','field3'

```

So how can i remove only the brackets from the list without modifying the strings.

Answer: 
It sounds like you want to print your list in a specific format. You can do this using the `print()` function in python3 or the `print` statement in python2.

First, make a string which represents how you want to output your list:

```
output = ",".join("'" + item + "'" for item in list1)

```

There are two steps in this approach. Firstly, we add quotes to the outside of each item in the list, as per your desired output. Secondly, we join the items in the list around a comma.

If you want to have the string 'list1=' at the beginning of the output you can simply prepend it like this:

```
output = 'list1=' + output

```

Then, can simply print this string using `print output` in python2 or `print(output)` in python3.

This should print the following line:

`list1='field1','field2','field3'`
Try this :
`list1 = "'" + "','".join(list1) + "'"`