<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Nathan Pinno napsal(a):
<blockquote cite="midBAY106-DAV111747CD24AC8A7BB332F9C4DD0@phx.gbl"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta content="MSHTML 6.00.2900.2668" name="GENERATOR">
<style></style>
<blockquote id="0"><label id="HbSession" sessionid="4060303509"></label>
<div>cal_opt = int(raw_input("What option would you like: "))<br>
if cal_opt == "1":<br>
......<br>
</div>
</blockquote>
</blockquote>
<br>
<br>
your problem is in these two lines (and even more, but if you solve
this, the others you get for free).<br>
try run just these two lines and guess, think about what kind of
variable is in cal_opt.<br>
<br>
<br>
<blockquote cite="midBAY106-DAV111747CD24AC8A7BB332F9C4DD0@phx.gbl"
type="cite">
<blockquote id="0">
<div>elif cal_opt == "2":<br>
X = input("First number:" )<br>
Y = input("Second number:" )<br>
print X, "-", Y, "= ",X - Y<br>
cal_opt = int(raw_input("Option: "))<br>
</div>
</blockquote>
</blockquote>
the other trouble might be on the last line - note that "if" is not
"while". :-)<br>
<br>
before creating your own program would be better to go through some
nice tutorial, to get some experience.........<br>
<br>
nice pytime<br>
geon<br>
<br>
</body>
</html>