Suppose I have a python script called a.py like this:
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Author : Bhishan Poudel # Date
Just type this command in terminal.
sudo su