Programming

Learn Computer Science Basics in Python

The computer science of a first university course, taught in the Python you know: how a computer stores numbers, text and objects, how to measure code, searching and sorting, recursion, logarithms, and the data structures every program is built from.

Free to start · adaptive placement finds your level · reviews timed to your own forgetting.

31 lessons in Computer Science Basics in Python

What an algorithm isBits and bytesFixed size and overflowText as bytesHow a float is storedNames point at objectsChanging an object or moving a nameHow Python runs your codeCounting stepsTiming codeHow cost growsBig OShorter code is not fasterLinear searchBinary searchGetting binary search rightSelection sortInsertion sortRecursion and the call stackMerge sortWhy logarithms are everywhereRacing the sortsPython's own sortStacksQueuesHow a dictionary finds thingsWhat sets and dicts costLinked listsTreesWhich structure for the job?Project: a spell checker you speed up

Built to be understood — and remembered.

Every idea is taught with motivation and a worked example before the drills, and an FSRS spaced-repetition engine schedules each review for the day its model predicts you would forget it. A short placement check finds what you already know, so you start Computer Science Basics in Python exactly where it's useful.

Related Programming subjects