+ 2

Max min problem

How does python compare marks like @&%=+-*/()?

7th Feb 2017, 2:07 PM
C.R.Devila
C.R.Devila - avatar
3 ответов
+ 3
ord("@") > ord("=") because of 64 > 61
8th Feb 2017, 8:21 AM
Артём Косенко
Артём Косенко - avatar
+ 1
With ord(symbol), for example: ord("(")
7th Feb 2017, 2:20 PM
Артём Косенко
Артём Косенко - avatar
+ 1
Oops, my fault But actually I mean like this: x=["@","="] print(max(x)) >>>@ Why? Why does @ lagerer than = ?
7th Feb 2017, 2:26 PM
C.R.Devila
C.R.Devila - avatar