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)]
1.4m articles
1.4m replys
5 comments
56.9k users