Select Page

Lesson 3

List As the name suggests, a list stores a collection of similar data types. List allow duplicate values. fruits = [‘orange’, ‘apple’, ‘pear’, ‘apple’, ‘banana’] #adds ‘kiwi’ to the end of the...

Raspberry Pi: Change host name

You can change your Raspberry Pi’s host name. Your host name is referenced in two raspbian configuration files. Open up the terminal window. After you make these changes, reboot your raspberry pi. The following file will the default host name pi. Change it to...

Sending email from Python

You can send email from Python, using the smtplib library. This library is a built-in library, so there are no additional steps to install. In this example, we are using the SMTP server information for gmail. You can use any SMTP server to send email. When you run...

Lesson 2

Programming in Python Saving code to py file So far you have been typing code directly in the Python console. You would have lost all the commands you wrote on you previous session. A better approach will be to save your code into a file with an extension of .py, so...

Lesson 1

Meet Raspberry Pi Raspberry Pi,sometimes referred to as Pi, is a low cost, single board computer. You can use it to learn to code in Python and to build cool electronic projects. Exploring Raspberry Pi Hardware Have you ever been curious to open stuff and see how it...