Thonny python tutorial12/20/2023 ![]() ![]() ![]() # We will use comments throughout this tutorial, but you can # leave them out if you'd like They are ignored by the python interpreter, and begin with the # character like this: # This is a comment. Comments are notes to ourselves (or other programmers reading our programs later). If we want to, we can also add comments to our script. Save it as hello.py in ~/rvr-projects.Īdd the line below (and save): print( "Hello World") Open up your text editor or Python IDE of choice, and make a new file. Now to open Nano you can just type this command: nano If it returns something like this then you are set: GNU nano, version 3.2 Nano Text Editor is probably already on your pi, to test this try this commend: nano -version It turns out that in Python, this is really easy. ![]() It's traditional to start any programming language with a "Hello World" program. Getting Started with Python - Hello World A more focused IDE specifically for Python development.Found under Programming in the Applications Menu.A small lightweight IDE that supports several languages including Python.To learn more about using Nano, you can check out this How-To Geek tutorial or the previously mentioned Pac-Man treasure hunt on the terminal from the Raspberry Pi Foundation.Since its entire interface is implemented in the terminal, you can use it from another computer over SSH. Found under Accessories->Text Editor in the Applications Menu.A simple graphical text editor, similar to Notepad on Windows.Raspberry Pi OS typically has the following programs preinstalled: An IDE may provide helpful auto-complete suggestions, debugging features, and much more. Python scripts are text files that contain Python code.Īn IDE, or Integrated Development Environment, is a program that typically includes text editing features, plus some extra features designed to make programming in particular languages easier. It's a program that allows you to edit text files. A text editor is exactly what it sounds like. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |