let a = 2

= ⇒ is an assigning operator

a += 2 ⇒ adding 2 to a variable

Have to be of same data types i.e (float with float, int to int)

Boolean Operator

  1. True
  2. False

Arithmetic Operators

Swift supports the four standard arithmetic operators for all number types:

Comparison Operators

Swift supports the following comparison operators: