Learning objectives - Video Tutorials & Practice Problems
Video duration:
1m
Play a video:
<v ->Welcome to Lesson Three:</v> Control the Flow with Conditionals. This lesson is all about using if and else statements to control what code to run. If you already know how to program in another language, then this lesson will be quite basic, since conditional statements in Python are extremely simple and read like English. We start this lesson with some context about how to think like a programmer. In addition to discussing problem-solving and debugging tips, I also discuss the love of learning and how empathy fits into the programmer mindset. Then we look at ways of comparing values that result in true or false. Next, 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.