<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1250">
<TITLE id=ridTitle>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></HEAD>
<BODY id=ridBody background=cid:677063701@05072005-2E51>
<DIV><SPAN class=673085100-07072005>Thanks to everyone who helped me with the
problem I had with my "age" program. I now have it working properly
(yay).</SPAN></DIV>
<DIV><SPAN class=673085100-07072005></SPAN> </DIV>
<DIV><SPAN class=673085100-07072005>So, now I need to know how to insert a
doctype declaration into my python script so that a) the python script runs
properly and b)the page validates as valid XHTML.</SPAN></DIV>
<DIV><SPAN class=673085100-07072005></SPAN> </DIV>
<DIV><SPAN class=673085100-07072005>Here is my code below. It runs fine as a
python script, but won't validate:</SPAN></DIV>
<DIV><SPAN class=673085100-07072005></SPAN> </DIV>
<DIV><SPAN class=673085100-07072005>import time<BR>print "Content-type:
text/html"<BR>print<BR>print "<html><head>"<BR>print
"<title>Current Time</title>"<BR>print
"</head><body>"<BR>print "<h1><b>Current
Time</b></h1>"<BR>print "<p>The current time is"<BR>print
"<strong>", time.asctime(), "</strong></p>"<BR>print
"</body></html>"<BR></SPAN></DIV>
<DIV><SPAN class=673085100-07072005></SPAN> </DIV>
<DIV><SPAN class=673085100-07072005>Any help would be greatly
appreciated!</SPAN></DIV>
<DIV><SPAN class=673085100-07072005></SPAN> </DIV>
<DIV><SPAN class=673085100-07072005>Thanks!</SPAN></DIV>
<DIV><SPAN class=673085100-07072005></SPAN> </DIV>
<DIV><SPAN class=673085100-07072005>Regards,</SPAN></DIV>
<DIV><SPAN class=673085100-07072005></SPAN> </DIV>
<DIV><SPAN class=673085100-07072005>Jennine</DIV></SPAN>
<DIV><SPAN class=673085100-07072005></SPAN> </DIV>
<DIV><SPAN class=673085100-07072005></SPAN> </DIV>
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> gordnjen
[mailto:gordnjen@rogers.com] <BR><B>Sent:</B> July 4, 2005 10:25
PM<BR><B>To:</B> 'tutor@python.org'<BR><B>Subject:</B> "And"
function<BR><BR></FONT></DIV>
<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>
<DIV><SPAN class=677063701-05072005>age =int(raw_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> </DIV>
<DIV><SPAN class=677063701-05072005>I get stuck with the old enough to get a
student discount part. I have tried</SPAN></DIV>
<DIV><SPAN class=677063701-05072005></SPAN> </DIV>
<DIV><SPAN class=677063701-05072005>if age>16 and age<25:</SPAN></DIV>
<DIV><SPAN class=677063701-05072005>print "You are old enough to get a student
discount"</SPAN></DIV>
<DIV><SPAN class=677063701-05072005></SPAN> </DIV>
<DIV><SPAN class=677063701-05072005>But it doesn't seem to work.</SPAN></DIV>
<DIV><SPAN class=677063701-05072005></SPAN> </DIV>
<DIV><SPAN class=677063701-05072005>Any help would be great.</SPAN></DIV>
<DIV><SPAN class=677063701-05072005></SPAN> </DIV>
<DIV><SPAN class=677063701-05072005>Thanks!</SPAN></DIV>
<DIV><SPAN class=677063701-05072005></SPAN> </DIV>
<DIV><SPAN class=677063701-05072005>Jennine</SPAN></DIV>
<DIV> </DIV>
<DIV> </DIV>
<STYLE>
<!--
A.psl {
        TEXT-DECORATION: none; COLOR: #ff0000; FONT-FAMILY: Verdana,Arial,fixed
}
A:hover {
        TEXT-DECORATION: underline
}
A.psl:hover {
        COLOR: #999999
}
.noro {
        FONT-SIZE: 8pt; COLOR: #ff0000; FONT-FAMILY: Verdana,Arial,fixed
}
.logotext {
        TEXT-DECORATION:none; FONT-SIZE: 10pt; COLOR: #ffffff; FONT-FAMILY: Arial Black,Arial,fixed; FONT-STYLE: italic
}
A.brand {
        COLOR: #777777; FONT-SIZE: 7pt; FONT-FAMILY: Verdana,Arial,fixed; TEXT-DECORATION: none
}
-->
</STYLE>
<P></P><SPAN id=_AthCaret></SPAN>
<P></P><BR>
<P><FONT size=2></FONT> </P>
<P><FONT face=Arial size=2></FONT></P></BODY></HTML>
<BR>
<P><FONT SIZE=2>--<BR>
No virus found in this outgoing message.<BR>
Checked by AVG Anti-Virus.<BR>
Version: 7.0.323 / Virus Database: 267.8.9/41 - Release Date: 05/07/2005<BR>
</FONT> </P>
<P><FONT SIZE=2 FACE="Arial"> </FONT> </P>