Programming in Python is quite easy. In case you're using a Raspberry Pi with Python installed, once you access the console, you can run the following code:
print("Hello IoT")
You can store a program in a text file (usually with an extension .py) or interactively type it inline in Python's console.
Assuming your file is stored in the file named helloworld.py
that contains the code above, an execution and its result are presented on the screen as in figure 1.
Python has an interactive console that lets one type the code in. To exit back to the command line, it is necessary to execute the quit()
function (figure 2).
An IDE makes programming in Python more comfortable than using a command line. There are many solutions, such as Visual Studio Code + plugins, but perhaps the easiest to use is Thonny. A sample video guide on installing and writing the first program is available on YouTube [1].