Getting Started with Python List Comprehensions

In this video, you will see demonstrations of how to use Python List Comprehensions.

  1. Converting a list of temperatures
  2. Determine which elements in a list are numbers
  3. Calling a function from within a list comprehension
  4. Combining two lists
  5. Combining multiple lists

Here are the files demoed in the video https://github.com/belgort-clark/python-list-comprehension-video-demos

Here’s a video on Python String Methods that you may also find helpful:

Advertisement

Author: Bruce Elgort

You’ll find this technology professor – an award-winning instructor at Clark College – working hard to inspire and challenge his students with meaningful web development and programming experiences. With a skinny vanilla latte (no foam) in hand, Bruce loves to tinker and test the boundaries of existing and emerging technologies, to then guide hungry minds through memorable, educational journeys to showcase with passion the ever-evolving innovations of society. An industry leader, Bruce is known for co-developing Elguji’s IdeaJam software, and is recognized by IBM as an ‘IBM Champion’ for being an innovative thought leader in cloud technologies.

%d bloggers like this: