So I have tried to install python when my terminal showed that I didn't have python, which was weird because I thought I did. When I tried to find it I couldn't find it, I used commands like:
which python
When I tried to remove python (I was trying random things):
sudo apt remove python
Then this error would show: The operation couldn’t be completed. Unable to locate a Java Runtime. Please visit http://www.java.com for information on installing Java.
When I tried installing it with
apt install python
It would then throw the same Java error.
UPDATE: Apologies, I am on macOS Monterrey! 12.4