Assignment, Variables, Constants & Sequences
Inputs, Outputs & Type Conversion
IF Statements & Boolean Operators
Nested Selection and Iteration
WHILE, REPEAT-UNTIL Loops
Validation and verification
Validation and authentication routines
High-level & Low-level languages
Assemblers, Compilers & Interpreters
In Python The 'if' statement is used to conditionally execute a statement. In other words we look at a statement(conditional) and decide if that conditional statement is true or false,we then do one thing when the condition is true and something else when the condition is false.
Lets see if we can create a version of the above flowchart in python.
The code below shows you how you can make a simple quiz using an elif statement
If we want to have more than two otions when we make a choice, we can do that in python by using an elif statement.
The code below is an example of set of choices for a quiz
1. Create a quiz with 5 questions, the quiz should be about python?