how to incorportate a different language in python code 1

how to incorportate a different language in python code

import os
#You can use the system function to make a script of your other
#language and call that script from your python code
#Example of incorporating a shell script:
os.system(./script.sh)

Here is what the above code is Doing:
1. The os module is imported
2. The system function is called
3. The system function is passed a string that is the name of the
script to be executed

Similar Posts