Think Python: How to Think Like a Computer Scientist

An acclaimed open textbook introducing computational thinking, variable assignments, conditionals, iteration, functions, data structures (lists, tuples, dictionaries), file processing, and object-oriented programming in Python 3.