You can use this shell syntax (it is called here in the Unix literature):
#!/bin/sh echo this is a shell script python <<@@ print 'hello from Python!' @@
The token after the '<<operator can use an arbitrary identifier; people often use something like EOF (end of file) or EOD (end of document). If the marker starts a line, the shell interprets it as the end of the input for the program.
source share