0
I have a question.
Could anyone tell me why this code outputs False? print('a' > 'b') print("Bob" > "Dave") Output: False False
2 Antworten
+ 5
Mustafa
When you compare string it compares ASCII value so here ASCII value of b is greater than a
And ASCII value of D is greater than B
+ 2
Got it.
Thanks alot✌