edX-sponsored course, MIT 6.00.1x. Learning the basics of computer programming in Python and the fundamentals of computation, as well as getting the opportunity to implement your own Python functions.
This course is the first of a two-course sequence: Introduction to Computer Science and Programming Using Python, and Introduction to Computational Thinking and Data Science. Together, they are designed to help people with no prior exposure to computer science or programming learn to think computationally and write programs to tackle useful problems. Some of the people taking the two courses will use them as a stepping stone to more advanced computer science courses, but for many it will be their first and last computer science courses. This run features updated lecture videos, lecture exercises, and problem sets to use the new version of Python 3.5. Even if you took the course with Python 2.7, you will be able to easily transition to Python 3.5 in future courses, or enroll now to refresh your learning.
Since these courses may be the only formal computer science courses many of the students take, we have chosen to focus on breadth rather than depth. The goal is to provide students with a brief introduction to many topics so they will have an idea of what is possible when they need to think about how to use computation to accomplish some goal later in their career. That said, they are not "computation appreciation" courses. They are challenging and rigorous courses in which the students spend a lot of time and effort learning to bend the computer to their will.
-
- Knowledge
- Machines
- Languages
- Types
- Variables
- Operators and Branching
-
- Bindings
- Strings
- Input/Output
- IDEs
- Control Flow
- Iteration
- Guess and Check
-
- Approximate Solutions
- Bisection Search
- Floats and Fractions
- Newton-Raphson
-
- Decomposition and Abstraction
- Functions and Scope
- Keyword Arguments
- Specifications
- Iteration vs Recursion
- Inductive Reasoning
- Towers of Hanoi
- Fibonacci
- Recursion on non-numerics
- Files
-
- Tuples
- Lists
- List Operations
- Mutation, Aliasing, Cloning
-
- Functions as Objects
- Dictionaries
- Example with a Dictionary
- Fibonacci and Dictionaries
- Global Variables
-
- Programming Challenges
- Classes of Tests
- Bugs
- Debugging
- Debugging Examples
-
- Assertions
- Exceptions
- Exception Examples
-
- Object Oriented Programming
- Class Instances
- Methods
- Classes Examples
- Why OOP
- Hierarchies
- Your Own Types
-
- Building a Class
- Viualizing the Hierarchy
- Adding another Class
- Using Inherited Methods
- Gradebook Example
- Generators
-
- Program Efficiency
- Big Oh Notation
- Complexity Classes
- Analyzing Complexity
-
- Indirection
- Linear Search
- Bisection Search
- Bogo and Bubble Sort
- Selection Sort
- Merge Sort
-
- Visualizing Results
- Overlapping Displays
- Adding More Documentation
- Changing Data Display
- An Example