I typed a piece of code in python 3 and the python shell runs it extremely well and gives the right output. I transfered this code to Sublime Text 3, downloaded the package sublime REPL, and I used it to run my code. However, it tells me there is a syntax error when I run it and enter an input in Sublime using REPL. Here's the line where it finds the syntax error:
dataGiven = sorted([float(x) for x in input("Enter data separated by a space (At least 3 values of data must be entered) ").split()])
But, there is no syntax error because the python shell runs the code properly. Please help. I find Sublime text to be really helpful but it just wont run properly because of this input. I am willing to post a bigger segment of the code if you need it. Thanks in advance.
EDIT
screenshot of error:
Traceback (most recent call last):
File "Untitled.py", line 708, in <module>
dataGiven = sorted([float(x) for x in input("Enter data separated by a space (At least 3 values of data must be entered) ").split()])
File "<string>", line 1
78 67 45
^
SyntaxError: invalid syntax
***Repl Closed***