When I'm trying to run my main.py file through VSCode terminal, it works fine if i use py main.py but shows the prompt of "how do you want to open this file?" when i use python command instead of py. this issue is specific to vs code terminal. both py and python works fine on my windows terminal.
here's what i tried-
what am i missing here?
I selected CMD as my default terminal profile, and it worked miraculously. Although I have been using Python for three years, I never faced such an issue before.