0

Symbols like strings

If you compare Symbols like Strings, the result is True. Fun by true xD

12th Mar 2017, 5:39 PM
Luis Eduardo Ferrer Cruz
Luis Eduardo Ferrer Cruz - avatar
2 Answers
0
Hello. What do you mean? Like this? >>> a = "*" >>> b = "*" >>> a == b True
12th Mar 2017, 10:48 PM
Stanislav Syarkevich
Stanislav Syarkevich - avatar
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"
8th Apr 2017, 10:56 AM
Novice
Novice - avatar