Operators


+ - *


Normal Division

/ division (always produces a float (.0) at the end of whole numbers

div = 100 / 15 
print(div) ' 6.6666666667


Floor Division

// (twice) floor division operator - returns the quotient it will divide the numbers and just return the whole number leaving out the decimal point

qu = 100 // 15 
print(qu) ' 6


Remainder

% (for modulus)

rem = 100 % 15 
print(rem) ' 10



** (twice for exponentiation)


assignment operators - += -+ *= /=


also -= *= /= **= %= //=



also //= and %=
bodmas applies



(5 > 3) and (4 < 3)


(5 > 3) or (4 < 3)


not(5 > 3)





© 2025 Better Solutions Limited. All Rights Reserved. © 2025 Better Solutions Limited TopPrev