12/7/2023 0 Comments Thonny python tutorial# 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
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |