I have a simple python list below called lis
lis = ['CWA9','WQH0','GBD0']
When I print and slice the list, I get the format I desire, but cannot figure how to store as a variable
print (str(lis)[1:-1])
'CWA9','WQH0','GBD0'
I tried the following, but I get the beginning and ending " marks (string format).
str(lis)[1:-1]
"'CWA9','WQH0','GBD0'"
Whats the best approach to format the original list (lis) to the format seen in the print code above so that the output is 'CWA9','WQH0','GBD0' and store as a variable