Python: List of ints printing on one line

Say that I have an array¬†a list of ints and I want to print its contents on a single line, without any comments or brackets. input: arr = [1,2,3,4] *????* output: 1 2 3 4 A simple print won't do, and iterating prints will print each element on its separate line. Following stackoverflow, I tried … Continue reading Python: List of ints printing on one line

Advertisements