Watch this video and more on Tech Learning Network
So far the code we've written has all of the variable values hardcoded, so we get the same output every time we run the program. Now we'll learn to take user input so we can process information provided by the user.
Every program makes decisions. The coding structures used to make decisions are called conditionals. In this video, you'll learn to create simple conditional statements.
Not every conditional is evaluated as true. In this section of the course, you'll create else statements to work with false conditions.
The ternary operator is an abbreviated way of expressing a conditional-- Using it makes you look like a sophisticated Python programmer. You'll learn the ternary operator in this segment