From the course: Introduction to Python: Learn How to Program Today with Python by Pearson
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Learning objectives - Python Tutorial
From the course: Introduction to Python: Learn How to Program Today with Python by Pearson
Learning objectives
Okay, this lesson is called Control the Flow with Conditionals, and it's all about using if and else statements to control what code is run. If you already know how to program in another language, this lesson will be pretty basic since conditional statements in Python are nice and simple and read like English. We start this lesson with some context about useful skills for programmers. In addition to discussing problem-solving skills, I also talk about how the love of learning will help you be a better programmer, and the ways AI might affect the programming process. Next, we look at ways of comparing values that result in true or false. Then we use those comparisons to say, if this statement is true, do this, and if not, do this other thing. These are called conditional statements. Finally, we bring everything together and write a number guessing game.