[Tutor] dealing with user input whose value I don't know

Alan Gauld alan.gauld at btinternet.com
Fri Oct 3 01:57:59 CEST 2008


"David" <ldl08 at gmx.net> wrote

> Does that mean input() is obsolete (after all, Zelle's book is not 
> the freshest on the shelf)? Or do they have different uses?

They have different uses and input is very convenient at the >>> 
prompt
or when experimenting but in most cases is the wrong choice for
'production'; code because of its vulnerability to exploitation by
crackers and other malicious (or unintentionally malign) users.

-- 
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld





More information about the Tutor mailing list