Run a python script on mac terminal

You need to find out what folder you are saving hello.py into.
Then cd to that folder before you run python3 hello.py.

You can try using find command to hunt for hello.py,
Beware macOS may pop up dialogs saying you need to let terminal access folders.

find . -name hello.py