I am new to python and I am not getting how to print the list in which, the list should not contain ' while printing.
if give print list
I am getting the result as ['xyz', 'ysfe']
I need to eliminate that single quotes.
I am new to python and I am not getting how to print the list in which, the list should not contain ' while printing.
if give print list
I am getting the result as ['xyz', 'ysfe']
I need to eliminate that single quotes.
try this, it will work
mylist = ['abc', 'def', 'brt']
print ('[%s]' % ', '.join(map(str, mylist)))
a = ['xyz', 'ysfe']
s = {39: None}
print(str(a).translate(s))