I am trying to join the following array into a proper csv line (not a file)
#input array
x = [2,"Appple", "car,plane",45.2]
I tried the following
",".join(x)
But it fails as the resulting output is 2,Apple,car,plane,45.2 . It also fails due to the numbers and floats.
Expected result would be:
2,Apple,"car,plane",45.2