'tuple' object has no attribute 'rstrip' python
<p>I am writing a python program that takes in user input for an int array that is later sorted. I have successfully compiled my program on my machine, however, cannot get it to compile correctly on a Unix server. The Python compiler on my machine is version 3 while I believe the server may be running on Python 2.6. I'm not sure what is the underlying issue.</p>

<pre><code>list = input('Enter numbers in array with commas: ').rstrip() #this line is being flagged
list = list.split(',')
print(list)
</code></pre>

<p>My error:</p>

<pre><code> AttributeError: 'tuple' object has no attribute 'rstrip'
</code></pre>