Re: [Tutor] Can't figure out syntax error

2005-06-10 Thread Alan G
> frustration to figure out the problem, I just began explicitly > type-casting as many variables as I could, and missed the fact that I Must be something about the mornings but I seem to be pickier then... When you say type-casting that is a C term used to describe a horrible operation that fool

Re: [Tutor] Can't figure out syntax error

2005-06-09 Thread Dan Schellenberg
Phew -- thanks, Ziyad. That did the trick all right. In my frustration to figure out the problem, I just began explicitly type-casting as many variables as I could, and missed the fact that I had done the same to this as well. Thanks again, Dan On 9-Jun-05, at 7:32 PM, ZIYAD A. M. AL-BATLY -

Re: [Tutor] Can't figure out syntax error

2005-06-09 Thread Kent Johnson
[EMAIL PROTECTED] wrote: > Hi there, > > I'm in the process of learning Python, and need some help deciphering > the reason why the following code doesn't work: Ziyad has answered your immediate question but I have a few more comments. > > import sys, string > > def dec2bin(decNum): > #

Re: [Tutor] Can't figure out syntax error

2005-06-09 Thread ZIYAD A. M. AL-BATLY
On Thu, 2005-06-09 at 18:16 -0600, [EMAIL PROTECTED] wrote: > Hi there, > > I'm in the process of learning Python, and need some help deciphering > the reason why the following code doesn't work: > int(num) = int(num) / 2 # this is integer division, so we truncate the > decimal part Here's