Preview 1
Let's test it by running our first program to perform basic math and add two numbers. >>> 2 + 2 12. The output is: 4 To exit the Python console simply type exit(). >>> exit() 4.2 Running .py files If you have a complex program, with many lines of code, the Python console isn't the best option.
Preview 1
Preview 2
Preview 3
Preview 4
Preview 5
Preview 6