0
Give an example of using greater or smaller operators on strings
4 Answers
+ 4
You should specify the concerned programming language.
+ 3
In strings first character of each word is compared
Grapes>Orange
G ascii value is smaller than O ,so it results in False
Suppose there was
Cherry>Cherri then comparing each character y and i are checked since they have different ascii values
So here y is greater than i so it results in true
0
In python
0
Thank