Attachment 'HypotIO.py'

Download

   1 from math import hypot 
   2 
   3 print "HypotIO - Written by JAM in Python 2.4.1"
   4 print
   5 print "What is the value of x?"
   6 x = float(raw_input())
   7 print
   8 print "What is the value of y?"
   9 y = float(raw_input())
  10 print
  11 print "The value of z is:"
  12 print hypot(x, y)
  13 print
  14 print "Press Enter to quit."
  15 raw_input()

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2005-05-24 12:54:06, 0.3 KB) [[attachment:HypotIO.py]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.

Unable to edit the page? See the FrontPage for instructions.