To write a python file in linux we add different shebang, but the same concept. We give python location. Here is the example ↓ #!/usr/bin/env python def hlo(): return "hello"