Python 3

home

Introduction to Python

davidbpython.com




Your New Partner: the Python Interpreter

what do computers do?

Computers can do many different things for us.


Think about what our computers do for us:





what do computers really do?

At base, computers really only do three things.



Python can do many things, but we will focus on the first item -- working with data. The main purpose of any programming language is to allow us to store data in memory and then process that data according to our needs.





programming languages

A programming language like Python is designed to allow us to give instructions to our computer.






the Python Interpreter

The Interpreter is Python Itself.






evaluate - compile - run

When we run a python program, the Interpeter takes these three steps.






what the interpreter can do

Python is very smart in some ways.






what the interpreter can't do

Python is not smart in some ways, too!






how to respond to exceptions (errors)

We should seek to understand what the Interpreter is telling us.




This learning is not just about making programs work -- it's about understanding the interpreter -- what it can and can't do.





[pr]