How to remove single quotes from the tuple and list in python [duplicate]

  python

I tried to remove only the single quote form the tuple, but I didn’t get what I want.

For example,

L = ('1', 'a', 'b')

The expected output:

output = (1,a,b)

Is there a way to get this output?

Source: Python Questions

LEAVE A COMMENT