Guide to CS 61A
Introduction
Welcome to 61A!
Let's get you setup with Python and introduce you to the very rudimentary basics of the language.
About This Guide
Thanks for stopping by. I hope this guide is of good use to you, but before we get into it, I jus...
Computer Science, Briefly
Before we dive head-first into Python and the fundamentals of Computer Science, it's important th...
Setup (Lab 0)
We've covered the basics, and it's time to get into it. Let's go ahead and install Python to get ...
What is CS 61A?
Now that we've established some of my incoherent thoughts about computer science, let's take a lo...
Expressions & Names
We'll start off a little slow and talk about expressions in python. From your math classes, you p...
Functions
But what can you really do with all of these different expressions? If you combine them into func...
Environment Diagrams
Now that we know how to start basic coding, we should also look into how we can visualize our cod...
Head First into Python
Now that we've established the basics and gotten ourselved acquainted with Python, it's time to g...
Conditions
Most of the time, you only want your code to run if something is true (or false). For example, sa...
Conditional Operators
Right now, we know how to use simple conditions in if-else statements. What if we wanted to check...
Loops
We learned about conditions and saw how we can use them to make our code run only when we want it...
Lambdas
Let's take a break from all this new condition and loop stuff and go back to something we recogni...
Higher Order Functions
Remember the add_2 function from the previous section on lambdas? What if we wanted to make a gen...
Environments
If you haven't read my notes on environment diagrams, now is a good time to read those. Parent Fr...