Currently I have installed sublime text 3 in Linux for python programming. When I am executing the piece of code, I am getting error, this error is because of Python version sublime 3 is using is 2.7. How can i change the python version from 2.x to latest 3.x in sublime text 3. Here is my piece of code
lis = [2, 1, 3, 5, 4]
# using len() to print length of list
print ("The length of list is : ", end="")
print (len(lis))
# using min() to print minimum element of list
print ("The minimum element of list is : ", end="")
print (min(lis))
# using max() to print maximum element of list
print ("The maximum element of list is : ", end="")
print (max(lis))
When I am running this program on python 2.x version, I am getting an error as "invalid syntax", but this error is not coming in python 3.x version. Kindly guide me to change the python version of sublime text 3 from 2.x to 3.x