title: Syntax error on int list with .split()
body: <p>Not sure why I seem to be getting this syntax error, when I run the code in pycharm it works just fine </p>
  
  <p>I have: </p>
  
  <pre><code>import sys
  import os.path
  sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
  
  from DiceRolls import RandomDiceRoll
  
  num = [int(n) for n in input("Enter Numbers: ").split(",")]
  for n in num:
      print(RandomDiceRoll.diceRoll(n))
  </code></pre>
  
  <p>And the RandomDiceRoll does this: </p>
  
  <pre><code>import sys
  import random
  
  def diceRoll(n1):
      w = random.randint(1,n1)
      return w
  </code></pre>
  
  <p>Now when I run this in pycharm, it works great, and prints the results I want. </p>
  
  <p>However if I run it from terminal with python scriptName.py, I get this: </p>
  
  <pre><code>Enter Numbers: 4 0 0 
  Traceback (most recent call last):
    File "userEnter.py", line 9, in &lt;module&gt;
      num = [int(n) for n in input("Enter Numbers: ").split(",")]
    File "&lt;string&gt;", line 1
      4 0 0 
        ^
  </code></pre>
  
  <p>I feel like I am doing something that I should pickup on, but I can't seem to find it, any help would be awesome! </p>