Get process ID
❮ expanduser - handle tilde ~ the home directory of the user External command with system ❯
examples/os/getpid.py
import os print(os.getpid()) print(os.getppid())
93518 92859
This is on Linux/OSX
echo $$