Buying for a Team? Gift This Course
Wishlisted Wishlist

Please confirm that you want to add Python 3 for Beginners (2017) to your Wishlist.

Add to Wishlist

Python 3 for Beginners (2017)

Learn Python Programming Using Mnemonics, Metaphors and the Science of Learning
4.6 (55 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
4,447 students enrolled
Last updated 2/2017
English
$10 $35 71% off
1 day left at this price!
30-Day Money-Back Guarantee
Includes:
  • 8.5 hours on-demand video
  • 5 Articles
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Have a coupon?
What Will I Learn?
The “why” of programming from code-free discussions using metaphors, mnemonics, discussions and interactive examples.
The “how” of programming from interactive code examples and explanation lectures. :)
View Curriculum
Requirements
  • None. This is the Ellis Island of programming courses. It’s for beginners, busy huddled masses and people who yearn for a pay raise.
Description

Separating "Why" From "How"

This course addresses all topics in two ways, first by having a no-code discussion explaining the “what” and the “why,” then we add code examples to demonstrate the “how.”

Why Lessons

  • Creative Right-Brained Visual Discussions

  • Often the creative right side of our brains use the excuse, “It’s too complicated.”

  • So our right-brain videos, use plain English discussions, stories and memory mnemonics to address the “why” of programming without letting the technical stuff get in the way.

How Lessons

  • Logical Left-Brained Explanations and Examples

  • Often the logical left side of our brains use the excuse, “What's the point?”

  • So our left-brain videos, use code examples and syntax explanations to address the “how” of programming.


Cutting-Edge Learning Methods

This course was built around several learning methods that take advantage of new discoveries from the science of learning. 


The Spacing Effect

  • Learning is faster when the studying is spread out over time.

  • So this course includes an easy-to-follow schedule (90 min. sessions, 3 days a week) that takes two months to complete.

  • The course is split into 3 chapters that start with a no-code, reading-friendly e-book written in Q&A style with mnemonics.


The Mnemonic Effect

  • Humans are wired to learn about real-life objects, but often in programming, learning is not hands on or visual.

  • Each concept we discuss is connected to a physical object that you have likely interacted with in real life and can imagine seeing, feeling, etc. 


The Metaphor Effect

  • Learning is faster when an instructor builds on associations that a student has already made.

  • This course uses visual/spatial mnemonics along with every programming concept. Each mnemonic is tied to a metaphor, so you can connect the discussion topics with physical objects to aid in memory retention.


Memory Palace

  • A Memory Palace works by imagining a place you know well and then putting the physical mnemonics we learned from the other chapter in your spacial memory.  

  • After the “what” and “why” videos, you will find bizarre stories that are all told in a single geographical location.


The Bizarreness Effect

  • The Bizarreness Effect is the tendency to remember bizarre material better than common material.

  • The stories are purposely designed to make absurd leaps of logic, anthropomorphize objects and generally address bizarre and unrealistic situations.


The Eureka Effect

  • The Eureka Effect describes the experience of suddenly understanding a previously incomprehensible problem.

  • To help increase this sensation, we learn passes. This approach lets the concepts build up in steps, but also allows the whole picture to come into focus slowly, as you learn about previous concepts on a deeper and deeper level.

  • We use two numbering systems for every lesson. The top number shows the breadth: how much progress you are making across topics. The bottom number shows the depth: how deep into a topic's complexity you are.


The Belief Effect

  • Studies show that students who are told they will do better on tests end up performing better, and vice versa.

  • This course is sprinkled with stories that humanize the life of a programmer, comparing programming to creative writing, sports and painting. Just as anyone can learn writing or painting skills, anyone can learn to code; this course keeps that perspective in focus.


Project-Based Learning

Each chapter ends with a review of dozens of working projects.


Projects: Writing

  • Automate Boring Songs: Prints out the whole “99 bottles of beer on the wall” song

  • Make Interactive Jokes: Interactively asks the user to be part of a snowman and vampire joke. The punchline is… wait for it…. “Frostbite.” :)

  • Randomly Pick Characters: Randomly chooses a letter out of a sentence

  • Identify Positions: Finds the second occurrence of a word in a sentence

  • Remove Vowels: Removes vowels from a sentence

  • Reverse a String: Takes in any text input “string type,” reverses it, then returns the reverse text string

  • Check for Palindromes: Checks any text input for a palindrome match, then returns a yes or no statement

  • Pluralize: Takes any single word and makes it plural


Projects: Numbers

  • Calculator Stuff: Performs basic arithmetic

  • Solve the Pythagorean Theorem: Solves the Pythagorean theorem with variables

  • Generate Random Numbers: Returns a random integer from a customizable range of numbers

  • Odd or Even Test: Returns a boolean response if a number is even or odd

  • Trig Homework: Calculates some trigonometric angles

  • Randomize a Guessing Game: A fun random guessing game you can play with a friend


Projects: Automation

  • Print the Fibonacci Sequence: Prints the Fibonacci sequence

  • Solve the FizzBuzz Problem: Solves the FizzBuzz problem just like at a real job interview


Projects: Oysters

  • Check if it's Dark Outside: Looks up the user’s location and time and then returns a statement saying if it’s dark outside or not

  • Read a Spreadsheet from the Internet: Uses the pandas module to load in a CSV file from the internet

  • Make a Progress Bar: A cool package that makes a progress bar while your computer is working on a loop that runs 10 million times

  • Scrape Jokes off a Website: A cool app that uses BeautifulSoup to scrape Victorian jokes off a website and display them in the console

  • Share Data through an API: Creates JSON for others to access

  • Make a Beautiful Chart: Generates random data points, then uses matplotlib package to display a colorful chart


My goal is to help you advance from beginner to job-ready programmer as fast as possible. Because it’s my first course, I am keeping the introductory price at less than $4 per hour, so sign up now!

Who is the target audience?
  • Anyone who is project managing a developer, wants technical career training or is simply curious about all the hoopla around programming.
Students Who Viewed This Course Also Viewed
Curriculum For This Course
Expand All 52 Lectures Collapse All 52 Lectures 08:29:47
+
Start of Chapter 1
4 Lectures 18:18

I tried to create a unique learning experience for you by building all my content around a handful of learning methods. In this video, we will get a high-level overview of the learning methods the course was constructed around, then a few recommendations to help you get the most out of your time.

Preview 11:31


Attached is a recommended schedule to accompany the video lectures.

Student Schedule
00:15

This is the mnemonic E-Book that the videos were created off of. 

Chap 1 - Mnemonic Nouns (Optional eBook)
00:02
+
Setup
6 Lectures 46:10


What’s programming?

  • Programming is the action that results in softwares, algorithm or an apps in the same way writing is the action that results is books, stories and screenplays.

  • To be a good programer you need to learn two things, the first one is speak the language, the second is community your goals clearly.

  • Computers are simple and reactive so learning to program is also about communicating clearly. Your goals must be broken down into real actionable steps and all steps must be accounted for.


How will that help me?

  • Once you learn only a handful simple programming concepts and the ways they interact you can you layer them in creative ways to build really complex software.

  • Robots, self driving cars, apps, video games, websites, you name it.

  • Every industry from space travel to farming using software, and that software needs people like you and me to keep making it better.


What is Python and why do we want it?

  • One of many programming language to describe to a computer requests, just like English, French or Spanish are world languages you can use to describe what kind of food you want at a restaurant.


Where did python get it’s name?

  • The name came from Monty Python


How does it compare to other programming languages?

  • Python is currently the most popular introductory teaching language at top U.S. universities

  • It’s the most popular programming language in the world!

  • Uses white space tabs and generally english syntax for readability.

  • Has good extensions for people interesting in web development, computer science.

  • It is open source and free to use.


What is the difference between classic Python and Anaconda Python?

  • Anaconda is a suite of tools, and packages that contains python inside of it.

  • It's aim is to simply simplify package management and deployment scientific computing.


If I don’t end up a full time programmer is there any other benefits?

  • Yes, you will learn a very important logical way thinking.

  • Programming is all about breaking down abstract goals into specific action.

  • Check out this algorithm that specifies the details of making a peanut butter and jelly sandwich.
Preview 03:55


This “how” lesson demonstrates:

  • How a programming workflow typically looks.

  • How we can code Python in a non traditional way using the cloud
Python From The Cloud (How)
10:38


This “how” lesson demonstrates:

  • How to install Python 3.5 and the Jupyter notebook on a Mac running OSX Sierra.
Installing Python on Mac (How)
03:37

This “how” lesson demonstrates:

  • How to install Python 3.5 and the Jupyter notebook on a PC running Windows
Installing Python on Windows (How)
07:39


This “how” lesson demonstrates:

  • How to to download the courses interactive files from github.

  • How to launch, navigate and work with Jupyter notebooks.
Preview 20:20

Download Code Examples
00:01
+
Mutability
4 Lectures 47:39


What’s a variable?

  • A variable is any characteristics, number, or quantity that can be measured or counted, think age, sex,  income or country of birth are variables because the value may change over time.

  • Technically reserved memory locations with an ID locator

  • For beginners I think it’s best to think of them as information tupperware that can scale to fit any object.

  • Variables are case sensitive and cannot start with a digit.


What are types?

  • Classifications of variables, grouped by memory usage and structure.

  • Therefore, by assigning different data types to variables, you can store integers, decimals or characters in these variables.


What is an object?

  • Everything is an object type, variables, functions, operators, etc...

  • Python is completely object oriented, and not "statically typed".


What is an objects identity?

  • Every object has an unique identifier called its identity.

  • An object’s identity never changes once it has been created, it’s the object’s address in memory.


What is mutability?

  • It’s a process. I think of it as evolution, but only making partial changes. Some part of the original creature must stay the same. Like the variable name in Python.


What is a variable's state?

  • State is term used to refer to this current variable's value.


How do we find it out if we don't know?

  • I tend to think of variable stats as analogous to emotional state.

  • Same person with different internal feelings dominating their thoughts.
Preview 07:33


This “how” lesson demonstrates:

  • How to create a variables.

  • How to check what type of variable is.

  • How to check if something is an object and find its object ID.

  • How to find the current state of a variable
Variables, Types, Objects, Mutability & States (How)
15:42


What is scope? Variable scope?

  • When a name (also known as variable) is used in a code block a scope defines the visibility. That variables visibility is considered that variables scope.

  • Scope identifies the boundaries that a variable can found within.


What defines the rules of Scope?

  • There is a concise set of rules that can be summarized in the acronym LEGB.

  • These rules are specific to variable names, not attributes. If you reference it without a period, these rules apply


What are the LEGB rules?

  • L, Local — Names assigned in any way within a function, and not declared global in that function.

  • E, Enclosing function locals — Names in the local scope of any and all enclosing  nesting functions, from inner to outer.

  • G, Global (module) — Names assigned at the top-level of a module file, or declared global in a def within the file.

  • B, Built-in (Python) — Names preassigned in the built-in names module : Examples are open, range & SyntaxError.


What is a namespace?

  • A namespace is a way to see what names/variables we have in our scope.

  • A namespace, is an fenced in area with a list of all available names in our current scope.

  • A name can also map to a function or any other python object so importing a module or function can bring more names along with it so your name spaces holds the functions, classes and vars your module has access to.

  • In Python, each package, module, class, function and method function owns a "namespace" in which variable names are resolved.

  • There's also a global namespace that's used if the name isn't in the local namespace.

  • To use libraries you have to load them into you name space.


How do I see what my namespaces are?

  • Locals() prints local variables

  • Globals() print global variables, The built in globals function returns a dictionary containing all the variable names Python knows about.

  • The python magic %var


What are public, private and protected variables? Related to classes?

  • Public variables, are variables that are visible to all classes.

  • Private variables, are variables that are visible only to the class to which they belong.

  • Protected variables, are variables that are visible only to the class to which they belong, and any subclasses.


Single Underscore?

  • Names, in a class, with a leading underscore are simply to indicate to other programmers that the attribute or method is intended to be private. However, nothing special is done with the name itself.


Double Underscore (Name Mangling)

  • Identifiers with double_underscores get their underscores replaced with classnames.

  • Methods that start like __cowboyhat (at least two leading underscores, at most one trailing underscore) is textually replaced with _classname__cowboyhat.
Scope (Why)
08:56


This “how” lesson demonstrates:

  • How the is syntax looks that contains variables into a scope.

  • How to print all of the active names in our name spaces to our console.

  • How the syntax looks that classifies a public-private or protected variable.
Scope, Namespaces, Public, Private & Protected Variables (How)
15:28
+
Type: Singles
3 Lectures 36:46


What is casting?

  • Casting is when you convert a variable value from one type to another.

  • This is, in Python, done with functions such as int() or float() or str().


What is dynamic typing?

  • Under the right circumstances casting can be triggered automatically in the background.

  • A language has dynamic typing when it does not associate values strictly with a specific type, but it is designed to "decide" what the type of a value should be at runtime, based on how you are attempting to use it.


What is an integer type?

  • An integer is just a number without a decimal part (for instance, -17, 0, and 42 are all integers, but 98.6 is not).


What is a float type?

  • A float is a number with that display the fraction using decimal point.

  • For instance 98.6 but not 42


What is a string?

  • A string is usually a bit of text you want to display to someone, or "export" out of the program you are writing. Python knows you want something to be a string when you put either " (double-quotes) or ' (single-quotes) around the text.


What is escaping a string?

  • The backslash ( \ ) character is used to escape characters that otherwise have a special meaning, such as newline, backslash itself, or the quote character.


What does the repr function print? It looks similar to a string?

  • The goal of str is to print something readable, the goal repr is to print something you could cut and past back into python and use.  


What is unicode?

  • In Python 3.x, Python creates string as unicode by default.

  • Unicode is an international encoding standard for use with different languages and scripts, by which each letter, digit, or symbol is assigned a unique numeric value that applies across different platforms and programs.

  • UTF-8 is used by 87.8% of all the websites

  • They actually are arrays of integers
Single Types (Why)
05:14


This “how” lesson demonstrates:

  • How to recognize the difference between an integer and a floating-point number.

  • How to use functions to round numbers up or down.

  • How we can import constants into our code.

  • How to work with boolean math.

  • How to print numbers out to the console in ways that are aesthetically pleasing
Preview 10:30


This “how” lesson demonstrates:

  • How to work with the type of string.

  • How we can use escape characters to specify actions outside of a string.

  • How we can use the Repr method to see how the computer thinks about text.

  • How to access string methods and show off some cool things we can with them.
Str, Escape, Raw, Repr, Encoding, Method (How)
21:02
+
Type: Groups
4 Lectures 46:34


What’s a list?

  • Lists are a python programming construct that works like a list of items, or an array.

  • Lists are written within square brackets [ ]

  • Lists can contain any object separated by a comma.

  • Lists keep their order. (As opposed to collections and dictionaries)

  • Lists are a sequence of elements.


What’s a matrix?

  • A matrix is a nested list, like a list list of lists

  • It’s almost always is made of numbers.

  • At times it might make the most sense to think of them as 2D or 3D structures.


What are tuples?

  • Tuples are immutable lists, that do keep their order.

  • Tuples are immutable (locked, unchangeable or sturdy) lists.

  • Tuples and lists are both "sequences", that have elements that we're able to pull out.


What is the set data type?

  • Sets are lists but without duplicate entries and unordered.

  • There is no order function

  • Every item in the set can only occur once.


What is a dictionary?

  • They have two parts a key & and value.

  • They are made with curly braces, commas and colons.

  • Each key is separated from its value by a colon (:), the items are separated by commas, and the whole thing is enclosed in curly braces.

  • The values of a dictionary can be of any type, but the keys must be of an immutable data type such as strings, numbers, or tuples.

  • Dictionary's do not keep an order similar to a set and unlike a list


What is a hash table?

  • A python dictionary uses a hash table, which is a data structure that uses a hash function to compute an index into an array of buckets or slots, from which the desired value can be found.
Group Types (Why)
04:15


This “how” lesson demonstrates:

  • How to work with the list type.

  • How to create incredibly long lists with only one method called a range.

  • How to work with lists that are nested inside of list, especially when they look like math matrices
Lists, Range & Matrices (How)
19:56


This “how” lesson demonstrates:

  • How to work with a list like immutable type called a Tuple.

  • How to work with sets.

  • How to do venn diagram style math with sets
Tuples & Sets (How)
10:43


This “how” lesson demonstrates:

  • How to harness the the power of key and values pairs,.

  • How to work with the type dict.

  • How to use some of the types best methods.

  • How to import and use a new dictionary type with a few more powers called DefaultDicts.
Dicts, Dict Loops & DefaultDicts (How)
11:40
+
End of Chapter 1 - App Review
5 Lectures 33:34

  • Welcome to the auto garage, so you want to become a car mechanic? Oh, you say you want to be programmer? Well the learning process is actually pretty similar except sometimes without physical things to look at like engine parts new students get confused and give up too quickly even tho they would be great programmers!

  • So this projects section is unique from the other sections because we're simply diving into the deep end and poking around learning from dozens of prebuilt applications. The goals is not to understand everything but to just absorb whatever you can and keep these programs in your mind as a blurry final goals
Preview 02:34


  • Automate Boring Songs: Prints out the whole 99 bottles of beer on the wall song:

  • Make Interactive Jokes: Interactively asks the user to be part of a Snowman and vampire joke. Punchline… wait for it…. Frostbite. :)

  • Randomly Pick Characters: Randomly chooses a letter out of a sentence.

  • Identify Positions: Find the second occurrence of a word in a sentence.

  • Remove Vowels: Removes vowels from a sentence.

  • Reverse a String: Takes in any text input “string type”, reverses it the returns the reverse text string.

  • Check For Palindromes: Check any text that's input into it for a palindrome match, then returns a yes or no statement.

  • Pluralize: Takes any single word and turns it plural.
Chap 1 - Apps Review: Writing
08:05


  • Calculator Stuff: Performs basic arithmetic.

  • Solve The Pythagorean Theorem: Solves the Pythagorean theorem with variables.

  • Generate Random Numbers: Returns a random integer from a customizable range of numbers.

  • Odd or Even Test: Returns a boolean response if a number is even or odd.

  • Trig Homework: Calculate some trigonometric angles.

  • Randomize A Guessing Game: A fun random guessing game you can play with your friend.


Chap 1 - Apps Review: Numbers
09:02


  • Print The Fibonacci Sequence: Prints the Fibonacci Sequence.

  • Solve The FizzBuz Problem: Solves the fizzbuzz problem just like a real job interview.
Chap 1 - Apps Review: Automation
03:29


  • Check If It's Dark outside: Looks up the location and time the user is in and then returns a statement if it’s dark or not outside.

  • Read a Spreadsheet From The Internet: Uses the pandas module to load in a CSV file from the internet.

  • Make a Progress Bar: A cool package that makes a progress bar while your computer is working on a loop that run 10 million times.

  • Scrape Jokes off a Website: A cool app that uses beautifulsoup to scrape Victorian jokes off of website and display them in the console:

  • Share Data Through an API:

  • Make a Beautiful Chart: Generates random data points then uses matplotlib package to display a colorful chart.
Preview 10:24
+
Chapter 2
1 Lecture 00:02

This is the mnemonic E-Book that the videos were created off of. 

Chap 2 - Mnemonic Verbs (Optional eBook)
00:02
+
Operators
2 Lectures 23:42


What is an operator?

  • An operator is a symbol represents an action.

  • For example *  is an arithmetic operator that represents multiplication.


What are Arithmetic Operators?

  • They are the same operations that you learned in high school math.

  • They also follow the traditional order of operations.


What is a comparison operator?

  • These operators compare the values on either sides of them and decide the relation among them. They are also called Relational operators.

  • == if the objects referred to by the variables are equal on the surface level.


What are assignment operators?

  • Assignment operator insert new value to a variable.


What are identity operators? (is)

  • Identity operators compare the memory locations of two objects.

  • “is” will return True if two variables point to the same object.


What are equality operators and how are they related? (==)

  • == if the objects referred to by the variables are equal.


What are membership operators?

  • Membership operators test for membership in a group, this can apply to lists, dictionaries, strings, tuples, etc.


What are logical operators?

  • Logical operators test basics Truth statements. Think of the words “and” and “or”

  • For example this statement is False

    • There is a prize behind door number 1 and door number 2

  • This statement is True

    • There is a prize behind door number 1 or door number 2


What is the order of operations in computer programming?

  • It’s like “order of operations” from algebra but with more stuff included.


What is the order of operations hierarchy in Python?

  • The following table with a non exhaustive lists of python operators from highest precedence to lowest.


Operators (Why)
06:53


This “how” lesson demonstrates:

  • How We can use arithmetic operators to do math on number types.

  • How we can use comparison operators light greater than and less than to compare numbers.

  • How to use more assignment operators than just our basic equals sign.

  • How we can use membership operators to find out if something is inside of a group.

Arithmetic, Comparisons, Assignment, Identity, Equality & Membership (How)
16:49
+
Conditionals
4 Lectures 42:04


What’s a conditional?

  • Python keywords that evaluate a condition then return a boolean (“True" or "False") response.


What’s the point?

  • Conditionals allow us to put our actions into context.


What keywords does python give us to specify conditions?

  • If, else and elif


What are decision trees?

  • Decision trees are when we get when we stack up lots of conditions.

  • Even though each condition is a made from simple logic when stacked together they can bring you to amazingly complex outcomes.  


What is flow control?

  • Flow control is an associated but boarder topic about how information moves through systems (like decision trees).

  • For example in software that routes incoming calls flow control could refer to the process of options the caller has and where they end up.
Conditionals (Why)
02:44


This “how” lesson demonstrates:

  • How a computer can use conditionals to make decisions.

  • How we can use the 3 keywords python gives us to create these conditionals.

  • How they can build up into more complex decision trees.
Conditionals, Keywords, Decision Trees (How)
09:31


What is a bug?

  • A software bug is an error, flaw, failure or fault in a computer program or system that causes it to produce an incorrect or unexpected result, or to behave in unintended ways.


Bugs vs. Features?

  • Bugs can come in shades of grey if you don’t clearly define the functionality your want to achieve. Sometimes bugs become features.


What is debugging?

  • Debugging is the processing of smoothing out the bugs, once you have a clear definition of the functionality you want.

  • Debugging can be as simple as a print command that prints variable at certain points of a program or as complicated as introducing new complex debug code to test for subtle changes between your expected outputs and the true outputs.


What is a stack trace?

  • A stack trace is a report that reports at certain points in time during the execution of a program.

  • A stack trace is a list of the method calls that the application was in the middle of when an error occurred. (aka Exception was thrown.)


How to Read the Stack Trace?

  • Not every bug will have a stack trace, but many do and if they do then this means the bug is not on the surface but instead wrapped up deeper down.

  • Deeper down could mean the order the code is compiled, or in a deepers scope like a function, or even in open sources modules imported.

  • So instead of starting at the top of our code we just start with our topmost method call and often this will get our attention close enough to the problem we can work through the rest.


What are exceptions?

  • Imagine if somebody passed in a string argument when your function only works with integers, exception handling is how you deal with it.


What’s exception handling?

  • Exception handling is about making sure that you have variables that don't break your code in a way that is similar to our conditional section before.

  • Exception handling is the process of responding to an unwanted action during either compile time or runtime.


What does the keyword raise do?

  • Raise is a way to override the default exceptions in the way we want and display the information we want to the user.

  • Raise allows us to define our own type of exception errors.


What does the keyword finally do?

  • We can use the finally statement to ensure that a block of code is closed at the end of the file even if there is exception that causes the interpreter to break

  • A time when you might want to do this is when you need to close out an open file at the very end of your program know matter what.


Is there a way to group errors into runtime and compile time?

  • Compile time errors happen when we feed a bunch of text to the compiler to convert it to machine code.


Conditionals (Why)
08:54


This “how” lesson demonstrates:

  • How we can think about the difference between a bug and a feature.

  • How we can look through an error's stack trace to zoom in on a bug origin.

  • How we can identify and work with exceptions.

  • How to use Python’s debugging key words like “try”, “except”, “finally” and “raise”.
Debugging, Stack Trace, Exception Handling, Try / Except & Raise (How)
20:55
+
Recurrence
2 Lectures 20:44


What is a loop?

  • Loops are in similar to the “if” conditional statements but they are continually run for as long as the condition stays True


What’s the point?

  • Saves time by separating out repeating logic.


What is breaking a loop?

  • Break statement can be used inside of a loop to stop the code from continuously executing before the while or for loops would normally complete.


Bonus Comment:

  • There is a style/type of programming called “functional programming.” and in a pure functional programming languages no loop construct is given. To code loop like logic they use a concept called “recursion”. We will learn more about that later.


What’s a for loop?

  • The for loop is used to repeat a section of code known number of times.

  • It’s a way to evaluate sets of varying lengths

  • It’s a control flow statement that allows a sequence to to be executed repeatedly.

  • Think “for each item”, do something.


What’s a while loop?

  • A while loop is a control flow statement that allows code to be executed repeatedly based on a given Boolean condition.

  • The while loop can be thought of as a repeating “if” statements over a sequence.
Loops (Why)
04:17


This “how” lesson demonstrates:

  • How we can build loops to iterate over it a list applying logic to each element.

  • How to work with the various types of loops like the “for loop” and the “while loop”

  • How we can insert logic into a loop to stop it before all of the items are processed.

  • How we nest loops inside one another to automate more complex logic.
For, Types, While, Break & Nesting (How)
16:27
6 More Sections
About the Instructor
4.6 Average rating
53 Reviews
4,447 Students
1 Course
Python Programmer, Comedian

I have been programming for over 10 years as a startup CTO, a freelancer and in a traditional 9-5 job setting. Most of my projects have been in the field of data science, but I've also worked on projects in areas of urban modeling, statistics and machine learning. 

My current passion lies in machine intelligence (A.I. as the movies call it). In 2017, I am diving head first into the world of online education to build a number of programming courses. They will span from introductory Python all the way up to neural networks in TensorFlow. 

I love the science of learning and pushing myself to learn faster using mnemonics and other discoveries in neuroscience. So to differentiate my teaching styles from others, I am planning all my educational series with a focus on these learning methods. 

I'm really excited to share my programming courses with you in 2017. I've always wanted to be a Neil deGrasse Tyson type at heart. :) So if you like Ex Machina, HBO’s Westworld or Wall-E, join me and let's destroy or save the world together!

Report Abuse