[Tutor] Python Basic Help

phpfood phpfood at gmail.com
Tue Oct 14 03:53:37 CEST 2008


on turning numbers into letters:
you can first do the arithmetic with python, then:
you can convert the integer or double value to a string: str(answer)
and then parse through each number value in the string and replace it with
letters for the ones you choose....
On Mon, Oct 13, 2008 at 7:23 PM, W W <srilyk at gmail.com> wrote:

> If you hit reply to all, you'll send your response to the list, too.
>
> On Mon, Oct 13, 2008 at 2:05 PM, burmantanya at yahoo.ca <
> burmantanya at yahoo.ca> wrote:
>
>> <snip>
>> i am getting tons of error messages for the last one!!! i was wondering
>> if we could use if loop inside another if loop
>>
>
> Yes, you can use loops inside other loops.
>
> If you're getting errors, post the exact error message you get, for
> instance when I type this:
>
> In [29]: import zanzubar
>
> I get this error:
> ---------------------------------------------------------------------------
> ImportError                               Traceback (most recent call last)
>
> C:\Documents and Settings\wayne\My Documents\mathbook\<ipython console> in
> <module>()
>
> ImportError: No module named zanzubar
>
> (I'm using IPython, so your error will be formatted a little different)
> HTH,
> Wayne
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20081013/fc085048/attachment.htm>


More information about the Tutor mailing list