+ 1
Does == operator in python compares any character with its ascii value?
For Ex : 'A'==65 or 'A'=='65'. Does any of them returns true?
2 odpowiedzi
+ 6
Both would return false, but ord('A')==65 would return true :)
+ 6
And 'A' == chr(65) would return True also. 🙂 (p.s. don't forget the capital T)