Be very clear what this does. It only affects any ports you have set in the current program. It resets any ports you have used in this program back to input mode. This prevents damage from, say, a situation where you have a port set HIGH as an output and you accidentally connect it to GND (LOW), which would short-circuit the port and possibly fry it. Inputs can handle either 0V (LOW) or 3.3V (HIGH), so it’s safer to leave ports as inputs.

After you have copied the code then press ctrl+O (for saving it) and then ctrl+x for Exit

Step 4: Final Setup

1. After you have saved the python script and exited ,now its time to make this file into an executable.

type in the following command

sudo chmod a+x ledblink.py

2. Now its time to run the command:)

type in the following

sudo python ledblink.py

Viola you should see your Led blinking once in every two seconds. Congratulations on your first project:)