Skip to content

[TEACHING] A collection of the lessons I've taught to my students who are complete beginners to programming—specifically, Python 3.

Notifications You must be signed in to change notification settings

shalynbarrios/Python-Notebook-from-NeetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction to Python [Full 82 Lessons]

Overview

This is my collection of Python Google Colab notebooks based on NeetCode (not Leetcode) lessons and problems that I've taught my students. Each notebook includes detailed notes and explanations. I cover the following topics:

  1. Mathematics/Built-in Operations
  2. Functions
  3. Conditional Statements
  4. Loops
  5. Advanced String Functions
  6. Lists
  7. Tuples and Sets
  8. Dictionaries
  9. Input
  10. Try/Except

There are 82 lessons in total. This may seem like a lot — but each lesson is broken down into very simple and digestible parts to ensure clarity and comprehension. The length of the files varies depending on whether I taught the lessons in-person or over Zoom.

Although the content is approximately six months old, it remains highly relevant. These notebooks were intentionally not published until now to ensure my students couldn’t use them to cheat (lol) at the time.

I am continually updating this repository, so check back for new additions.

P.S. If you are 100% new to coding, I highly recommend using Google Colab. It has a very simple interface to get you started.

P.P.S. A great resource for these notebooks is the Neetcode Python Full Course on Youtube, as these lessons are directly inspiried from the series.

Lessons

Mathematics

Shorthand Math

Boolean Algebra

Functions

Introduction to Functions

Parameters and Arguments

Return Statement

Type Hints in Functions

Global VS Local Scope

Creating Default Arguments in Functions

Conditional Statements

Comparison Operators

Introduction to If Statements

If Statement Scope

If Else Statements

Elif Statements

Logic Conditions

What is Truthy Falsy?

Loops

Introduction to While Loops

Counting using While Loops

While Loop Multiples

Introduction to For Loops

How to Change the Start Number in For Loops

How to Change the Incrementation of For Loops

For Loops in Reverse

Nested Loops and their Applications

Control Flow

Advanced String Functions

The Length Function (len())

String Indexing

Looping through a String

String Looping Shorthand

String Concatenation

String Slicing (part A)

String Slicing (part B)

Reversing a String

Strings are Immutable

String Formatting

Lists

Introduction to Lists

List Operations

Looping through a List

List Functions

How to Add Elements into a List/The Append Function

How to Remove Elements from a List/The Pop Function

The Index Function

Slicing Lists

Tuples and Sets

Tuples

Introduction to Sets

Set Operations

Dictionaries

Introduction to Dictionaries

What Else Can We Do With Dictionaries?

Looping Through a Dictionary

Additional Practice With Dictionaries (Thus Far)

Removing Items

The Values Function

Input

Reading Input

Type Conversion with Input

Parsing the Input

Input Practice

Try/Except

Introduction to Try and Except Blocks and the Concept of Order Flow

Error Catching

Multiple Except Blocks and Their Optional Parameter

About

[TEACHING] A collection of the lessons I've taught to my students who are complete beginners to programming—specifically, Python 3.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published