Struggling with basics

Jason jason at jasonmhirst.co.uk
Sun Sep 25 17:31:50 EDT 2005


Reinhold Birkenfeld wrote:
> Jason wrote:
>> Rather than reply to those individuals, just a big "thanks" to those 
>> that have helped.
>>
>> It's definitely making sense, the fact that I need to show the 
>> two-element tuple to show correctly was one of those head-slapping moments.
>>
>> And Dennis Lee Bieber hit the nail on the head when he mentioned that 
>> I'd declared the initial scores as strings, yet I was comparing them 
>> against integers.  I simply removed the single-quotes from the scores 
>> and everything slotted into place.
>>
>> Again, I now have the list working, apart from the list is reversed (as 
>> per Dennis Lee Bieber mentioned).  I'm afraid I don't understand what 
>> you mean about the DIFF report but I'll investigate further and learn a 
>> bit more.
> 
> Please bear in mind: If you just remove the quotes from '00050', you will get
> a value of 40. This is because integer literals with leading zeroes are inter-
> preted as octal.
> 
> Reinhold


Doh!

Just found that out! lol.

OK I'm going to read a bit more in the manual now; I'm determined to 
crack this nut by the morning.




More information about the Python-list mailing list