I want to add numbers to a pre-existing list and preserve no spacing between comma separated values but when I use the extend function in python, it adds spaces.
Input:
x=[2,3,4]
y=[5,6,7]
Run:
x.extend(y)
Output:
[2, 3, 4, 5, 6, 7]
Desired output:
[2,3,4,5,6,7]