-
Notifications
You must be signed in to change notification settings - Fork 229
/
numop1.html
32 lines (29 loc) · 2.3 KB
/
numop1.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module numop1</title>
</head><body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>numop1</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/Users/jbloom/Classes/python-bootcamp/DataFiles_and_Notebooks/03_FunctionsAndModules/numop1.py">/Users/jbloom/Classes/python-bootcamp/DataFiles_and_Notebooks/03_FunctionsAndModules/numop1.py</a></font></td></tr></table>
<p><tt>Some functions written to demonstrate a bunch of concepts like modules, import<br>
and command-line programming<br>
<br>
PYTHON BOOT CAMP EXAMPLE; <br>
created by Josh Bloom at UC Berkeley, 2012 (ucbpythonclass+bootcamp@gmail.com)</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
<td width="100%"><dl><dt><a name="-numop1"><strong>numop1</strong></a>(x, y, multiplier<font color="#909090">=1.0</font>, greetings<font color="#909090">='Thank you for your inquiry.'</font>)</dt><dd><tt>Purpose: does a simple operation on two numbers. <br>
<br>
Input: We expect x,y are numbers <br>
multiplier is also a number (a float is preferred) and is optional. <br>
It defaults to 1.0. You can also specify a small greeting as a string.<br>
<br>
Output: return x + y times the multiplier</tt></dd></dl>
</td></tr></table>
</body></html>