title: Does path function work differently in python IDLE and google colab?
body: <p>I have a code which perfectly works when executed in IDLE buts the same piece of code shows error when executed in google colab.</p>
  
  <p>code snippet:</p>
  
  <pre><code>im_path = os.path.join('D:\ANIKET\movie data set sentiment analysis','aclImdb')
  train_texts = []
  train_labels = []
  
  for category in ['pos','neg']:
      train_path = os.path.join(im_path,'train',category)
      for fname in sorted(os.listdir(train_path)):
          if fname.endswith('.txt'):
              with open(os.path.join(train_path, fname),encoding = 'utf8') as f:
                  train_texts.append(f.read())
              train_labels.append(0 if category == 'neg' else 1)
  </code></pre>
  
  <p>colab error:</p>
  
  <pre><code>FileNotFoundError                         Traceback (most recent call last)
  &lt;ipython-input-3-9c42cfcaed98&gt; in &lt;module&gt;()
       19     train_path = os.path.join(im_path,'train',category)
       20 
  ---&gt; 21     for fname in sorted(os.listdir(train_path)):
       22         if fname.endswith('.txt'):
       23 
  
  FileNotFoundError: [Errno 2] No such file or directory: 'D:\\ANIKET\\movie data set sentiment analysis/aclImdb/train/pos'
  </code></pre>