Python Conditionals - Beginning Python.! Programming World


Section 4: Conditionals

Python Conditionals - Beginning Python


4.1 Control Flow
We aim to introduce to what control flow and branching is.
·         Explain how the computer can make a decision with an “if” statement
·         Take a look at a simple example of how to use an if statement by writing a program to identify a given name

Click Here to Download

4.2          Comparison Operators
The aim of this video is to introduce the fundamental comparison operators.
·         Give a demo of using the “==” operator and why it differs from “=”
·         Show the difference between >, >= and <, <= and give a demo

Click Here to Download

4.3          Else and Elif
The aim of this video is to introduce the else and elif keywords.
·         Know what “else” is with the help of a demo
·         Explore what elif is and how it differs from if with a demo
·         Use both keywords in an if statement

Click Here to Download

4.4          and, or, and not
Introduction to the “and”, “or”, and “not” keywords.
·         Explain what the “and”, “or”, and “not” keywords are for and when you would use them
·         Explain what the concept and True and False is
·         Give a few examples of how “and”, “or”, and ”not” work with True and False. In the next video, give more detailed examples

Click Here to Download

4.5          Conditional Examples
In this video, we want to show the user the “and”, “or”, and “not” statements.
·         See a demo of how to use an “and” clause
·         Take a look at a demo of how to use an “or” clause
·         Do a demo of how to use a “not” clause

Click Here to Download

4.6          Mini Program
Create a mini program that uses conditionals.
·         Write a program to evaluate simple mathematical expressions in a file
·         Make the program extract out the largest value in the file


Click Here to Download

Post a Comment

0 Comments