[Tutor] A question about input/raw_input

Crane, Adam ACrane@computer2000.co.uk
Fri, 19 Apr 2002 09:17:42 +0100


I was just wondering, what is the difference between the two?  I know that
'input' is specifically for numbers, while 'raw_input' is for words and
numbers (well that's what I've come to understand).

But, if 'raw_input' can be used for words and numbers, then why is there an
'input' in the first place?  When writing programs, I often find myself
using 'raw_input' for numbers, because if I use input, and enter a word, the
program brings up an error message.  So I find it a lot easier to just use
'raw_input'.

I'm confused....more than usual I mean...

Adam
The contents of this e-mail are intended for the named addressee only. It
contains information which may be confidential and which may also be
privileged. Unless you are the named addressee (or authorised to receive for
the addressee) you may not copy or use it, or disclose it to anyone else. If
you received it in error please notify us immediately and then destroy it.
The information, views and comments within this communication are those of
the sender and not necessarily those of Computer 2000.