Question: I have a list in Python which includes up to 50 elements.
In order for me to easily add/subtract elements, I'd prefer to either code it vertically (each list element on one Python code line) or alternatively, import a separate CSV file?

```
list_of_elements = ['AA','BB','CC','DD','EE','FF', 'GG']

        for i in list_of_elements:
        more code...

```

I'd prefer code like this:

```
list_of_elements = 
['AA',
'BB',
'CC',
'DD',
'EE',
'FF', 
'GG']

        for i in list_of_elements:
        more code...

```

Just to clarify, it's not about printing, but about coding.
I need to have a better visual overview of all the list elements inside the Python code.

Answer: 
The first line should contain the first element, like this: 

```
list_of_elements = ['AA',
'BB',
'CC',
'DD',
'EE',
'FF', 
'GG']

```

or as Naufan Rusyda Faikar commented: `Put backslash next to = Or put the left bracket next to =`.

```
list_of_elements = \
['AA',
'BB',
'CC',
'DD',
'EE',
'FF', 
'GG']

list_of_elements = [
'AA',
'BB',
'CC',
'DD',
'EE',
'FF', 
'GG']

```

All three will work.
If you are on a Unix system you can run this command: `sed -i 's/,/,\n/g' yourFile.py`. This will add a line break at the end of every comma in your file (careful if you have commas in some other parts of your code, like strings and comments, and not just in lists).

Alternatively, if you use VS Code you can select the row with your list that you want to display more nicely and then click Ctrl+F. Then click Alt+L so you only replace commas in the selected row. Then write `,` in Find box and `,\n` in Replace box. Click Ctrl+Alt+Enter to replace all.