Get process ID



examples/os/getpid.py
import os

print(os.getpid())
print(os.getppid())

93518
92859

This is on Linux/OSX


echo $$