LecNotes 20012025
LecNotes 20012025
Relational Operators:
- S
trings are compared left to right, characters by characters, based on ASCII
codes.
- If a string is a prefix of another string, the longer string is considered longer.
Logical Operators
( in order of precedence/priority)
not,
and,
or
Order of precedence
1 .
x < y or not z == y
2.
3 .
10 > 5 and 5/0 < 10