Saída do terminal python

Ctrl+d or exit()
Blacksmith Plover