`wait` means wait for the process to finish -- block until `process` stops executing.

`communicate` means to send something to `process`'s `stdin`.