[Tutor] Calculator functions part II
ak@silmarill.org
ak@silmarill.org
Thu, 21 Jun 2001 00:43:50 -0400
On Wed, Jun 20, 2001 at 09:13:04PM -0700, Josh Gregorio wrote:
> Here is what I did:
>
> a = input("First number" )
> b = input("Second number" )
> answer = a * b
> print "The answer is %d " % (answer)
>
> This worked on my box. Was there a reason to use raw_input?
>
> Josh
input() executes results so if you make a typo it may mess up your program
or even delete files (that'd be quite a typo though). Also, it may be a security
threat.
--
Jupiter and Saturn Oberon Miranda
And Titania Neptune Titan
Stars can frighten
- Syd