list manipulation

DataSmash rdh at
Tue Apr 22 22:55:46 CEST 2008


I have a list that looks like this:
roadList = ["Motorways","Local","Arterial"]

I want to apply some code so that the output looks like this:
"Motorways;Local;Arterial" other words, I want each item in the list separated by a ';' and
then the whole thing surrounded by quotes.

How can this be done with the LEAST amount of code?

I appreciate your help!

More information about the Python-list mailing list