"Rajeev Nair" <[EMAIL PROTECTED]> wrote
also i believe the first line can also be written as 'x =
input('enter
.......') instead of using x=int(raw_input('......') . use raw_input
for
string and just input for integer.
No, use input() only in very special circumstances or when
experimenting for personal use only.
Use int(raw_input()) for all production code. It is much safer.
--
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld
_______________________________________________
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor