Make A File:

nano blink.py

Add The Following Code:

import os
import time

for j in range(10):  #How Many Times The LED Blinks
	os.system('echo 1 | sudo dd status=none of=/sys/class/leds/led0/brightness') # LED Is On
	time.sleep(1)   #Sleep Is In Seconds
	os.system('echo 0 | sudo dd status=none of=/sys/class/leds/led0/brightness') # LED Is Off
	time.sleep(1)   #Sleep Is In Seconds


And Save:
Let's Run The Code:

python blink.py