I had to do this; I used:
sudo find / -name '*3.7*' 2>/dev/null | grep -e '[Pp]y' | xargs sudo ls -lad
I pipe stderr to /dev/null to eliminate internal files that even with sudo I can't access. Things like:
find: /private/var/folders/zz/zyxvpxvq6csfxvn_n00000sm00006d/0: Operation not permitted
That returned all the possible Python 3.7 files / folders /...
If you want to list all files/folders in a directory, you should type ls not Is. It is L, not i.
To learn python, you won't need to reach ~/.bash_profile unless you need to change versions. Just use which python or python --version and use the syntax for the version that appears. Or use online compilers for quick testing.
Suppose you have your file learn....
The short arrow is indicating alias. Some like that are also there in my Applications folder for apps which are located in ~/Library folder.
So I can guess that when first photo's original process is done, alias is still active. This happens to me while using OpenCV. closewindow() is hard to perform. I have to force quit it every time(it kills jupyter ...