what is ipython

It's basically a python shell thing that's interactive.

Here is what the above code is Doing:
1. We’re importing the ‘os’ module.
2. We’re using the ‘os’ module to get the current working directory.
3. We’re using the ‘os’ module to list the contents of the current working directory.
4. We’re using the ‘os’ module to change the current working directory.
5. We’re using the ‘os’ module to list the contents of the current working directory.