Python With Spyder 6: Lists Part 2

This is the 6th in a series of videos providing a tutorial on Python 2.7 using Anaconda Python and the Spyder IDE. This video is the second of two videos on lists in Python. Click here to go to a “home page” for the video series.

The video is about 19 minutes long.

PWS6-DSSThumb

Next Video: The Idea of Objects

Video Index: Lists Part 2

Click on the topics below to jump to that location in the video.

Time Topic
00:00Introduction
00:16Python lists can contain any valid object
00:30Define an example function
01:19Create complicated list as an example
02:38Extend list definition across multiple lines
03:31Editor syntax checking – trianlge icon next to code line
03:38Run code block
04:11Print out list
04:47Reference list items
05:27Reference letter in a list item that is a string using two indices
06:07Reference a list item that is a function and execute it
06:55Reference a list item that is a list, its elements and slices
08:07Summary of complicated lists and their indexing
08:55Functions associated with lists (list methods)
09:11String method “upper”
09:38String method “lower”
09:46Get a list of the available string methods using code completion
10:11String method “capitalize”
10:25Functions associated with lists (list methods)
10:35Create an example list
11:10Continue list definition across multiple lines in iPython console
12:16Find the functions associated with lists (list methods) using code completion
12:51List method “reverse”
13:29List method “sort” (using code completion)
15:01Sort list in reverse order
15:48Summary of the section of the video on list methods
16:33Code completion in the editor window in the Spyder IDE

Next Video: The Idea of Objects

Python With Spyder 5: Lists Part 1

This is the 5th in a series of videos providing a tutorial on Python 2.7 using Anaconda Python and the Spyder IDE. This video is the first of two videos on lists in Python. Click here to go to a “home page” for the video series.

The video is about 15 minutes long.

PWS5-DSSThumb

Next Video: Lists Part 2

Video Index: Lists Part 1

Click on the topics below to jump to that location in the video.

Time Topic
00:00Introduction
00:26Definition of a vector
01:35Definition of a matrix
02:42Definition of a list
03:13Create a list in Python
04:18Assign a list to a variable name
04:45Index a list
05:11Negative index numbers for a list
05:41Slicing lists
06:26Summary of the basics
06:49Assigning list to variables – unexpected behavior
08:04Variable names are pointers to the list
09:13Create and assign a copy of a list
10:36Lists are indexed with square brackets not round brackets
10:50“object is not callable” error
11:25“index out of range” error
11:51Assign list item values with square brackets
12:23Lists are mutable
12:48Strings are immutable
13:47Convert string to a list
14:43Conclusion

Next Video: Lists Part 2