title: Python Train Test Split
body: <p>Below is the code and below that is the error.</p>
  
  <pre><code>from sklearn.model_selection import train_test_split
  X-train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2,random_state=0)
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>runfile('C:/Users/HP/Desktop/Python/P14-Machine-Learning-AZ-Template-Folder/Machine Learning A-Z Template Folder/Part 1 - Data Preprocessing/data_preprocessing_template.py', wdir='C:/Users/HP/Desktop/Python/P14-Machine-Learning-AZ-Template-Folder/Machine Learning A-Z Template Folder/Part 1 - Data Preprocessing')
  Traceback (most recent call last):
  
    File "C:\Users\HP\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 3326, in run_code
      exec(code_obj, self.user_global_ns, self.user_ns)
  
    File "&lt;ipython-input-44-136d41c04781&gt;", line 1, in &lt;module&gt;
      runfile('C:/Users/HP/Desktop/Python/P14-Machine-Learning-AZ-Template-Folder/Machine Learning A-Z Template Folder/Part 1 - Data Preprocessing/data_preprocessing_template.py', wdir='C:/Users/HP/Desktop/Python/P14-Machine-Learning-AZ-Template-Folder/Machine Learning A-Z Template Folder/Part 1 - Data Preprocessing')
  
    File "C:\Users\HP\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile
      execfile(filename, namespace)
  
    File "C:\Users\HP\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile
      exec(compile(f.read(), filename, 'exec'), namespace)
  
    File "C:/Users/HP/Desktop/Python/P14-Machine-Learning-AZ-Template-Folder/Machine Learning A-Z Template Folder/Part 1 - Data Preprocessing/data_preprocessing_template.py", line 35
      X-train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2,random_state=0)
                                                                                             ^
  SyntaxError: can't assign to operator
  </code></pre>