To run Python in Visual Studio, open VS and create a new project.
Select Python from the left and select Python application:

You will see the project below. EnterĀ a command, for example, Hello Word like below:

Press F5:

You can also import modules:


Keep learning. Keep building.
Explore AI, agents & Microsoft technology.
I share practical ideas, tutorials, and videos about AI, AI agents, Microsoft technologies, and the Power Platform.
Subscribe on YouTube āCarl de Souza Enterprise Architect at Microsoft Ā· AI Technology Expert