Struggling with basics
Reinhold Birkenfeld
reinhold-birkenfeld-nospam at wolke7.net
Sun Sep 25 17:22:40 EDT 2005
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
More information about the Python-list
mailing list