-1

I want to make

output=['A','B','C'] 

into

output=[A,B,C]

what function can i use to remove the single quotes?

1 Answers1

0

In your list list=['A','B','C'] means your list has 3 string values 'A', 'B' and 'C'

if you are writing list=[A, b, C] that means your list has 3 variables A, B and C

so if you define A, B and C you can do that like,

A = 1
B = 2
C = 3

list = [A, B, C] 

I would also strongly recommend you to go through documentation

ansu5555
  • 416
  • 2
  • 7