Learn your way! Get started

Python 3, Part 3: Data

with expert Peter Thorsteinson


Watch trailer

Python 3, Part 3: Data Trailer

Course at a glance

Included in these subscriptions:

  • Dev & IT Pro Video
  • Dev & IT Pro Power Pack
  • Power Pack Plus

Release date Release date 8/18/2014
Level Level Beginner
Runtime Runtime 2h 36m
Closed captioning Closed captioning Included
Transcript Transcript Included
eBooks / courseware eBooks / courseware Included
Hands-on labs Hands-on labs N/A
Sample code Sample code Included
Exams Exams Included


Enterprise Solutions
Enterprise Solutions

Need reporting, custom learning tracks, or SCORM? Learn More



Course description

In this course we are going to talk about data and data types. Python is a dynamically typed language that means it does not use a compiler. So the data types of variables and expressions won't be known until the code is executed at runtime. We will take a look at the different data types that are supported and the built-in data types of Python. We will also talk about numbers, string and Boolean. Then we’ll move onto a File type, and show how that can be used to iterate over elements within a file as a sequence. Next we’ll cover Lists, Dictionary, and Tuple, which is similar to a List but its contents are immutable. Then we will talk about Set, which is another type of collection, but unlike the others, Set is unordered and all of its elements are unique. And then we'll take a look at a very powerful concept known as comprehensions.

Prerequisites

This course teaches anyone who is interested in learning the basics of programming computers using Python 3. This course has no programming language pre-requisites and only assumes the basic familiarity with computer usage that virtually everybody has. Anyone with moderate computer end-user experience should be able to take this course.

Learning Paths

This course is part of the following LearnNowOnline SuccessPaths™:
Python Development

Meet the expert

Peter Thorsteinson Peter Thorsteinson has been working for two decades in many areas of Microsoft-based software development technologies, including all the latest languages, frameworks, and tools. He has been involved in several large scale software development projects and has authored and co-authored several books and courses relating to ASP.NET, AJAX, JavaScript, WPF, WCF, WF, ADO.NET, and LINQ. Peter is currently focusing on ASP.NET MVC, jQuery, Task Parallel Library, Windows Azure, and SharePoint Development.


Course outline



Types

Data Types (24:32)
  • Introduction (01:12)
  • Built-in Types (00:46)
  • Program Defined Types (00:46)
  • Demo: Integers (03:28)
  • Demo: Imaginary (04:37)
  • Demo: Sets (04:42)
  • Demo: Data Types – recap (03:05)
  • Demo: Data Types – recap2 (05:02)
  • Summary (00:49)
NumberTypes (28:28)
  • Introduction (00:17)
  • Number (07:06)
  • Number Operations (03:18)
  • Demo: Numerical Data Types (04:55)
  • Demo: Fractions (04:57)
  • Demo: Math (04:08)
  • Demo: Random (03:23)
  • Summary (00:21)
More Numbers (13:31)
  • Introduction (00:30)
  • Demo: Rational Numbers (03:50)
  • Demo: Operations (04:26)
  • Demo: Bitwise Operations (02:23)
  • Demo: Assignment (02:10)
  • Summary (00:10)

Strings, Booleans and Files

Strings (19:55)
  • Introduction (00:21)
  • String (03:47)
  • String Operations (06:56)
  • String Operations (continued) (02:43)
  • Demo: String Operations (05:39)
  • Summary (00:26)
More Strings (10:35)
  • Introduction (00:26)
  • Demo: String Formatting (01:42)
  • Demo: Format Specifiers (03:12)
  • Demo: Triple Coded (04:58)
  • Summary (00:15)
Booleans (06:32)
  • Introduction (00:33)
  • Boolean (00:08)
  • Boolean Operations (01:33)
  • Demo: Boolean Operations (03:54)
  • Summary (00:21)
Files (07:47)
  • Introduction (00:32)
  • None (00:28)
  • File (00:20)
  • Demo: File IO (02:33)
  • Demo: File Code (03:43)
  • Summary (00:08)

Lists, Tuples, Comprehensions

Lists (15:16)
  • Introduction (00:25)
  • List (01:25)
  • List Operations (03:20)
  • Demo: List Operations (02:25)
  • Demo: Stack (02:49)
  • Demo: Sort (01:35)
  • Demo: Queues (02:54)
  • Summary (00:22)
Dictionaries (04:23)
  • Introduction (00:25)
  • Demo: Dictionaries (02:00)
  • Demo: Kev Value Pairs (01:39)
  • Summary (00:18)
Tuples (06:55)
  • Introduction (00:19)
  • Tuple (00:35)
  • Demo: Tuples (01:07)
  • Demo: Immutable (01:15)
  • Demo: Single element (01:40)
  • Demo: Multi-dimension (01:39)
  • Summary (00:18)
Sets (08:37)
  • Introduction (00:40)
  • Set (00:13)
  • Demo: Sets (05:12)
  • Demo: super/sub (02:10)
  • Summary (00:20)
Comprehensions (10:18)
  • Introduction (00:42)
  • Comprehensions (00:38)
  • Demo: Comprehensions (05:07)
  • Demo: Lists (03:25)
  • Summary (00:24)