[Tutor] PYTHON????

Ben Vinger benvinger at yahoo.co.uk
Thu Sep 1 13:28:41 CEST 2005

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

Good Luck!

--- luckygoodluck at optonline.net 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 at 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

More information about the Tutor mailing list