I can\'t change my directory in Google colab. when I type cd it gives output like this \'/content\' I tried to change the directory using import os os.chdir(\"drive\")
Did you create a /drive directory? (By default, one does not exist. You'll need to mount your Drive using a recipe like this one.
Otherwise, create a directory first. For example,
!mkdir demo %cd demo !pwd
will show /content/demo.
/content/demo