Exercise 4: Conditions

A program sometimes may have to make choices. ┬áThese choices can execute different code depending on certain condition. In Python the if statement is used for conditional execution. The if…

Exercise 5: For Loops

Programs sometimes need to repeat actions. To repeat actions we can use a for loop. In the exercise below we will repeat actions on every item of a list. The…