Sortant de la ligne de commande Python

To exit from Python terminal, simply just do: exit()
Slay Masar