Jak zamknąć Python linią kodu

exit()
#If you are running this on an IDE like IDLE, then it might confirm if you want to quit the program.
Panda++