My data looks like:
X=[1,2,3,4]
But I need it to look like:
Y=[(1,2,3,4)]
How does one do this in python?
My data looks like:
X=[1,2,3,4]
But I need it to look like:
Y=[(1,2,3,4)]
How does one do this in python?
Try this:
l = [1,2,3,4]
l2 = [tuple(l)]