| [ Web Proxy ] |
| Viewing: https://wiki.python.org/moin/../python/platforms/../web/../../python/archive/JAM/Code/HypotIO.html | [Back] [Original] |
Legacy Wiki Page
This page was migrated from the old MoinMoin-based wiki. Information may be outdated or no longer applicable. For current documentation, see python.org.
This program creates an I/O interface for the hypot(x, y) function of the math module. It is very simple.
{{{from math import hypot
print HypotIO - Written by JAM in Python 2.4.1 print print What is the value of x? x = float(raw_input()) print print What is the value of y? y = float(raw_input()) print print The value of z is: print hypot(x, y) print print Press Enter to quit. raw_input()}}}
The download for this program is now available. It is attached as HypotIO.py.
Back to top2026, Python Software Foundation
Made with Sphinx and Shibuya theme.
| Web Proxy Viewer | New URL | Original Page |