JavaScript
x
2
1
print("hello")
2
Whatever I write in the python file, it only gives the current file path. How could I fix it?
JavaScript
1
5
1
The default interactive shell is now zsh.
2
To update your account to use zsh, please run `chsh -s /bin/zsh`.
3
For more details, please visit https://support.apple.com/kb/HT208050.
4
Gangs-MacBook-Pro:yashirq gangzhao$ /usr/bin/python3 /Users/gangzhao/yashirq/Practice/Python/Grokking_Algorithms/Binary_Search.py
5
Advertisement
Answer
I just ran this program in VS Code and it worked fine.
Just right click and select ‘Run Python file in terminal’ options. It should work!