3 Answers
+ 7
The parentheses indicate that exit() is a method. You'll learn what those are as you keep going through the Python tutorials.
The best way to explain methods right now is that they run code that performs a certain task. exit() is a built-in method to close the console.
+ 1
Mind that exit() is a method which exits the console. In programs, its better to use sys.exit
0
Additionally in Python, there is ideally only one way to do something which is debated by some programmers. So exit() method is how you exit python console but then there is quit() which does the same...đ
. Just assume that is how it is done if you like the fact.