OS. Start Your Python Project
This quick set of steps demonstrates how to set up your workspace for a Python project.
- In Visual Studio Code, save your new workspace to a convenient location. For example, C:/OS_Py/OpenSTAAD_Python_Tutorial.workspace. The workspace in Visual Studio Code serves as your working folder for saving and executing code.
- Create a new file.
- Save the file with a ".py" file extension. This automatically instructs Visual Studio Code to interpret the input as Python.
- In the main editor window, begin typing commands. For example, type print("Hello World!").
- Select the Run tool to execute your code. The terminal will open and display the results.
- Save your code.