How to check the list of packages and modules installed in python

well to be specific i actually want to see the list of packages/ modules installed in the codecademy workspace python so how do i do that?
uptill now i thought that the workspace didn’t have tensorflow cause once i did try to import it but it said no such module is available and now today when i tried to import it it worked so i wanna see what other modules are installed.
is there a command in python for that?

What lesson are you referring to?

You can download/install it to your machine, locally. See:

i mean how do i check the list of modules i have installed in a machine from python only

In your terminal window while in python3, type:


which will bring up a list of everything that you installed and the pre-installed stuff too.