Re: [Tutor] string to integer

2006-01-05 Thread Boyan R.
Thank you both I think I'll manage to continue with my program :) ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] string to integer

2006-01-05 Thread Boyan R.
I need program to convert my string in integer. I remember in BASIC I used val(string) command Is there a Python equivalent ? Here is how it should work: val(7) = 7 val(bbab7) = 7 val(aa7aa) = 7 val( 7) = 7 This last is most important, currently I don't know how to convert string " 7" to

Re: [Tutor] using help

2005-11-28 Thread Boyan R.
On Mon, 28 Nov 2005 14:56:38 -0600, Jason Massey wrote: > Boyan, > > A listing of all the built-in exceptions can be found at: > > http://docs.python.org/lib/module-exceptions.html > > > A description of this, and the other built-in functions, is at: > > http://docs.python.org/lib/built-in-fu

[Tutor] using help

2005-11-28 Thread Boyan R.
How can I see all error keywords for using Try..Except, like EOFError, ValueError etc by typing help('something') ? Also, what to type to see string handling commands ? like "int" [number = int(raw_input("Enter a number: "))] What's python equivalent for basic "val" command ? _