Re: [Tutor] problems with numbers in my python code

2006-03-11 Thread Smith
| From: sjw28 | | Basically, I have a code with is almost finished but I've having | difficultly | with the last stage of the process. I have a program that gets assigns | different words with a different value via looking them up in a | dictionary: | | eg if THE is in the writing, it assigns

Re: [Tutor] problems with numbers in my python code

2006-03-10 Thread Anna Ravenscroft
On 3/10/06, sjw28 <[EMAIL PROTECTED]> wrote: Basically, I have a code with is almost finished but I've having difficultlywith the last stage of the process. I have a program that gets assignsdifferent words with a different value via looking them up in a dictionary: eg if THE is in the writing, it

Re: [Tutor] problems with numbers in my python code

2006-03-10 Thread Hugo González Monteverde
Hi, > However, I can't seem to get the program to treat the numbers as numbers. If > I put them in the dictionary as 'THE' = int(0.965) the program returns 1.0 > and if I put 'THE' = float(0.965) it returns 0.9655549 or something > similar. Neither of these are right! I basically need to acce

[Tutor] problems with numbers in my python code

2006-03-10 Thread sjw28
Basically, I have a code with is almost finished but I've having difficultly with the last stage of the process. I have a program that gets assigns different words with a different value via looking them up in a dictionary: eg if THE is in the writing, it assigns 0.965 and once the whole passag