Re: [Tutor] comparing strings

2011-02-25 Thread bob gailer
On 2/25/2011 3:23 AM, Corey Richardson wrote: On 02/25/2011 02:53 AM, Edward Martinez wrote: Thanks for the reply. i now understand that python uses either ASCll or Unicode to compare and to do other things When comparing string (not unicode) Python uses the underlying hardware characte

Re: [Tutor] comparing strings

2011-02-25 Thread Corey Richardson
On 02/25/2011 02:53 AM, Edward Martinez wrote: > Thanks for the reply. i now understand that python uses either > ASCll or Unicode to compare and to do other things 1. Those are i's, not l's. 2. The first 128 characters of Unicode are the same as the only 128 characters of unicode. Check ou

Re: [Tutor] comparing strings

2011-02-24 Thread Edward Martinez
On 02/24/11 02:56, Dave Angel wrote: On 01/-10/-28163 02:59 PM, Edward Martinez wrote: On 02/23/11 19:29, Corey Richardson wrote: On 02/23/2011 10:22 PM, Edward Martinez wrote: Hi, I'm new to the list and programming. i have a question, why when i evaluate strings ie 'a'> '3' it reports true,

Re: [Tutor] comparing strings

2011-02-24 Thread Dave Angel
On 01/-10/-28163 02:59 PM, Edward Martinez wrote: On 02/23/11 19:29, Corey Richardson wrote: On 02/23/2011 10:22 PM, Edward Martinez wrote: Hi, I'm new to the list and programming. i have a question, why when i evaluate strings ie 'a'> '3' it reports true, how does python come up with that? W

Re: [Tutor] comparing strings

2011-02-23 Thread Edward Martinez
On 02/23/11 19:29, Corey Richardson wrote: On 02/23/2011 10:22 PM, Edward Martinez wrote: Hi, I'm new to the list and programming. i have a question, why when i evaluate strings ie 'a'> '3' it reports true, how does python come up with that? Welcome! As far as I know, it compares the value

Re: [Tutor] comparing strings

2011-02-23 Thread Corey Richardson
On 02/23/2011 10:22 PM, Edward Martinez wrote: > Hi, > > I'm new to the list and programming. > i have a question, why when i evaluate strings ie 'a' > '3' it reports > true, how does python come up with that? Welcome! As far as I know, it compares the value of the ord()'s. >>>ord('a') 97 >>>

[Tutor] comparing strings

2011-02-23 Thread Edward Martinez
Hi, I'm new to the list and programming. i have a question, why when i evaluate strings ie 'a' > '3' it reports true, how does python come up with that? Regards, Edward ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription