Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Treehouse

Python Sequences Course (How To)

via Treehouse

Overview

Discover several types of Python sequences, many ways of sequence iterations, and all of the common sequence operations.

What you'll learn

  • For loops
  • Slicing
  • Ranges
  • Sequence operations

Syllabus

Sequence Iteration

Learn three different ways to iterate through Python sequences.

Chevron 7 steps
  • Let's Chat About Sequences

    1:11

  • Iterating with Basic For Loops

    3:39

  • Iterating with Enumerate

    4:24

  • Iterating With For Loops

    2 objectives

  • Iterating with Ranges

    4:07

  • Iterating over Ranges

    1 objective

  • Recap of Sequence Iteration

    5 questions

Sequence Operations

Now that you've learned how to iterate through sequences, let's talk about sequence operations.

Chevron 11 steps
  • Sequence Operations

    0:57

  • Slices

    4:29

  • Creating Slices

    1 objective

  • Len, Min, and Max

    3:04

  • Finding len, min, max

    3 objectives

  • Membership Testing

    2:16

  • Count and Index

    4:38

  • instruction

    Code Samples: Membership Testing, Count, and Index

  • Concatenation and Multiplication

    3:04

  • instruction

    Sequence Operations Cheat Sheet

  • Recap of Sequence Operations

    4 questions

Reviews

Start your review of Python Sequences Course (How To)

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.