<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=windows-1250"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
gordnjen napsal(a):
<blockquote cite="mid008301c58108$b492acc0$a471c545@JennineGord"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<title>Message</title>
<style>BODY {
        MARGIN-TOP: 25px; FONT-SIZE: 12pt; MARGIN-LEFT: 20px; COLOR: #666600; FONT-FAMILY: Arial, Helvetica
}
IMG {
        MARGIN-TOP: 10px; MARGIN-LEFT: -20px
}
</style>
<meta content="MSHTML 6.00.2900.2668" name="GENERATOR">
<div><span class="677063701-05072005">I need to write a program that
will do the following:</span></div>
<div><span class="677063701-05072005"></span> </div>
<div><span class="677063701-05072005">Ask the user's age.</span></div>
<div><span class="677063701-05072005">If their age is below 1 yr old,
it prints "you are old enought to eat baby food"</span></div>
<div><span class="677063701-05072005">If they are over 16, it prints
"You are old enough to drive"</span></div>
<div><span class="677063701-05072005">If they are over 65, it prints
"You are old enough to drive" and "You are old enough to retire"</span></div>
<div><span class="677063701-05072005"></span> </div>
<div><span class="677063701-05072005">If they are between the ages of
16 and 25, it prints "you are old enough to get a student discount".</span></div>
<div><span class="677063701-05072005"></span> </div>
<div><span class="677063701-05072005">So far, I have this:</span></div>
<div><span class="677063701-05072005"></span></div>
</blockquote>
what about this:<br>
<br>
<blockquote cite="mid008301c58108$b492acc0$a471c545@JennineGord"
type="cite">
<div> </div>
<div><span class="677063701-05072005">age =input("How old are you?")<br>
if age>16:<br>
print "You are old enough to drive!"<br>
if age>65:<br>
print "You are old enough to retire!"<br>
if age<1:<br>
print "You are old enough to eat baby food!"</span></div>
<div><span class="677063701-05072005"></span> </div>
<div><span class="677063701-05072005"></span> <br>
</div>
</blockquote>
If's those are on the same logical level should be also on the same
vertical level :-)<br>
<br>
Pavel<br>
<br>
</body>
</html>