0
Symbols like strings
If you compare Symbols like Strings, the result is True. Fun by true xD
2 odpowiedzi
0
Hello. What do you mean? Like this?
>>> a = "*"
>>> b = "*"
>>> a == b
True
0
Comparing the strings , will result in comparison of alphabets in their albhabetical order (lexicographical order) . for example :
>>> a= "add"
>>>b="bad"
>>> a>b
True
As "add" comes first based of alphabetical order or in a dictionary before "bad"