The Python interpreter already contain the code for
multiplication, so you don't need to write it.  You
can just use it:

x = raw_input('give the first number')
y = raw_input('give the second number')
print x,  ' times ', y, ' is', int(x) * int( y)

Or in the interactive interpreter you can just:

>>> 2 * 4
8

Good Luck!


--- [EMAIL PROTECTED] wrote:

> Dear Python,
>  How does a calculator multiply? I want to create a
> computer software that can multiply. How do I
> program the computer to multiply? 
> > _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
> 



        
        
                
___________________________________________________________ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail 
http://uk.messenger.yahoo.com
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to