My code is throwing error

https://colab.research.google.com/drive/1gPvaw6oby_ha2n0OxKZNbk-CVlrzISHa?usp=sharing

plz correct my code. i m facing error in unzipping the file

Hey @Aashi-Agarwal-2380268668952871, are you talking about the following error ?

NotADirectoryError: [Errno 20] Not a directory: 'New Folder'

Please let me know and I would be happy to help !

Thanks ! :slight_smile:

yes plz correct this error

Hey @aashiagarwal6285, this error is coming because New Folder is not any directory in which you can switch to. It is just a file. So hence you cannot use the command os.listdir() for printing what’s inside a file. os.listdir lists out the contents present in a directory and not in a file.

I hope this helps clear your doubt !
Happy Learning ! :slightly_smiling_face:

and also my file is not unzipping

Hey @aashiagarwal6285, what is the problem in unzipping the file ?..is there any error ?

yes it is an error plz check it

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.