Skip to content

christopherdoughty/ga-2021-lesson3-python

Repository files navigation

Python Foundations


Materials We Provide

You'll work through these in order.

Topic Description Link
1 Python Intro 1 here
2 Python Intro 2 here
3 Python Intro 3 here

Learning Objectives

By the end of this lesson, students will be able to:

Part 1: Git and GitHub

  • Fork and clone a repo

Part 2: Jupyter Notebook

  • Create a Markdown cell
  • Create and run a code cell
  • Open and save files
  • Restart and shutdown kernels

Part 3: Python Foundations

  • Define integers, strings, tuples, lists, and dictionaries.
  • Demonstrate arithmetic operations and string operations.
  • Demonstrate variable assignment.
  • Implement for loops to iterate through data structures.
  • Apply if, else conditional statements.
  • Create functions to perform repetitive actions.

Part 4: Intermediate Python

  • Use enumerate to get an index for each list item
  • Use zip to combine two lists into a dictionary.
  • Use list comprehensions to create lists.
  • Use try-except blocks to catch exceptions.
  • Understand what a class is.
  • Understand what an object is.
  • Understand what an attribute is.
  • Understand what a method is.

Student Requirements

Before this lesson(s), students should already be able to:

  • Navigate the command line

Lesson Outline

Python Foundations

  • Data Types
  • Python Variables
  • Operators
  • Integers and Floats
  • Strings
  • Lists
  • Tuples
  • Dictionaries
  • Importing Packages and Documentation
  • If... Else Statements
  • Iterating with For Loops
  • Functions

Optional

  • List Comprehensions
  • Classes
  • Enumerate
  • Zip
  • Try/Except
  • Lambda Functions

Additional Resources

Browser-based coding lessons:

Intermediate/Advanced Python Tutorials

For more information on these topics, check out the following optional resources:

Command Line

Git

Jupyter

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors