3/6/2021
What new I learnt today?
1 min readMar 6, 2021
So in using Google colab if you want to run llinux commands use this “!” before the command
!unzip \\*.zip && rm*.zip
This is useful for unzipping the zipped files in the directory and remove the zipped files from them
This command is useful when we import data from Kaggle to Colab using Kaggle API
Most of the time it will give commands for loading data when it dint give we use this in unzipping the files
Operator overloading
suppose if we add 10 to a list then we get an error but when we add 10 to any NumPy array then all the elements are incremented by 10
which is surprising and need to concentrate so whenever we do this we need to be sure in dealing with these operations
[3, 4, 1, 2, 2, 1] + 10---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-20-a2508fc27c2b> in <module>
----> 1 [3, 4, 1, 2, 2, 1] + 10
TypeError: can only concatenate list (not "int") to list