Using Python, I would like to convert a list to string looks like this: I'm looking for a more elegant way then loops
cmd = ['cd ..', 'pwd', 'howami']
"cd..; pwd; howami"
Thanks in advance (it is my first question BTW, please be gentle)
Roy
for cmdStr in cmd:
cmdString += cmdStr + '; '
cmdString.rstrip('; ')