On 8/16/08, Lie Ryan <[EMAIL PROTECTED]> wrote:
> never use input(), use raw_input() instead. input() parses the string it
> receives first, and may (read: WILL in the hands of certain persons)
> allow user to input certain strings that get parsed into dangerous
> codes. Use int(raw_input()) instead to convert the result of raw_input
> (i.e. string) into a number (i.e. integer).

Probably float(raw_input()) would be better in this program.

Kent
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to