How to convert a list of longs into a comma separated string in python [duplicate] September 25, 2023 by Tarik You have to convert the ints to strings and then you can join them: ','.join([str(i) for i in list_of_ints])