![]() You have to do is type in the following: def welcome(name): Don't worry, we don't expect you to know any Python yet! All We'll be writing a short program that prints out a welcome message whenĮxecuted. Now we have VS Code open, we can begin writing our first Python file. ![]() Python extension for now, and ignore any other pop-ups that may appear. We'll talk more about extensions later, but just install the A pop-up will appear in the bottom right corner prompting you to install To create a new file, either right click below EXAMPLEĪnd select "New File" or click the page icon with a plus in the corner. Open the explorer (page icon in the top leftĬorner) then click EXAMPLE. You can also open VS Code in your current working directory via command line: code. The UNIX commands you learned in Lab 0: mkdir ~/Desktop/exampleįor Mac users, you'll most likely find VS Code in Applications.įor Ubuntu users, you'll most likely find VS Code by putting itįor Windows users, you'll most likely find VS Code in Program Files. Let's first create and navigate to a directory called example, using Recall from Lab 0 that you can open a terminal on the school Of either finding the application or opening it up from the terminal. Example: welcome.pyīy now, you should have VS Code installed. Instructions to install it on your computer. VS Code great for anything from simple Python scripting to denser software engineering It's known for being relatively lightweight while also incorporating key featuresįound in modern IDE's such as Git integration and an extensive debugger. Visual Studio Code (VS Code) is an open source text editor developed by Microsoft and is free to use.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |