Sequence, Selection and Iteration

A nice model for thinking about programming is called Sequence-Selection-Iteration.

  1. Sequence: Performs actions one time in a specific order.
  2. Selection: it is a choice between which operation to execute.
    1. e.g. if statement, switch
  3. Iteration: Repeating until you reach the end.
    1. e.g. for loop, while loop, recursion

Expression and Evaluation

arithmetic operators will return a numeric value ''' +: plus, -: minus, x*: times, /: divide, %: modulo,*

Read more :

Modulo

Example : 25%3 = 3**8 + 1 = 1 25%5 = 55 + 0 = 0 **: expo, //: floor division

Read More:

Floor Division in Python - GeeksforGeeks

Boolean operation will return a boolean (True or False) value '''

greater than , < less than, = greater or equal to, <= less or equal to, == equal to, != not equal to

'''