Jupyter Notebook doesn't recognise Anaconda installation

Apologies if I’ve posted in the wrong area. New to using Anaconda …

import os
result = os.popen('conda list anaconda$').read()
print('\nAnaconda Version:\n', result)

Result

Anaconda Version:
 # packages in environment at C:\Users\Andy\anaconda3:
#
# Name                    Version                   Build  Channel

I’ve tried updating the Windows path variable with the following paths
C:\Users\Andy\anaconda3
C:\Users\Andy\anaconda3\Scripts
the conda.exe application is in the Scripts directory