i am using cherrypy and i want the list itemes in new line like
a=['abc','def','ghi']

abc
def
ghi

in browser

Create a html page, that contains what you want.
Create a python program, that creates that html page for you as a string.
Go to cherrypy documentation..
Instead of returning "Hello world", reaturn the html page, that you have previously created.

You can join the lines with newlines:

print('\n'.join(a))
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.