Media Summary: If statements are how we conditionally run lines of code. Comparison Operators: (==, !=, <, >, <=, >=) Logical Operators (for compound conditions): (and, or, not) Functions are a awesome because they give us ways to dynamically reuse code that we write.
Python 3 Basics 13 34 - Detailed Analysis & Overview
If statements are how we conditionally run lines of code. Comparison Operators: (==, !=, <, >, <=, >=) Logical Operators (for compound conditions): (and, or, not) Functions are a awesome because they give us ways to dynamically reuse code that we write. We can attach else blocks to our if blocks. When the if statement is false, the only the else block runs. If the statement is true, only ... Lists are ways to represent many points of similar data under one variable. Tuples are a data type that are similar to lists, but they have a few important differences.
Comments are little notes you can put in your code. Here you learn to splice a list into a smaller list, split a string into a list, and combine a list into a string. while loops repeat a block of code as long as a specified condition is true. In this crash course I'll be teaching you the for loops repeat a block of code for every item in the given list. Scope is a counter-intuitive property of programming, but one that is important to know.
Strings are the data type that hold text.