<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<STYLE>BODY {
        MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
P.msoNormal {
        MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
LI.msoNormal {
        MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
PRE {
        MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
BLOCKQUOTE {
        MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
A {
        MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
MENU {
        MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
DD {
        MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
UL {
        MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
DT {
        MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
DIR {
        MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
ADDRESS {
        MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
H1 {
        MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
H2 {
        MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
H3 {
        MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
H4 {
        MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
H5 {
        MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
H6 {
        MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
HR {
        MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
</STYLE>

<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY id=ridBody background=cid:843265522@05042006-0C19>
<DIV><SPAN class=843265522-05042006><FONT face='"Arial"'>Hey 
all,</FONT></SPAN></DIV>
<DIV><SPAN class=843265522-05042006></SPAN>&nbsp;</DIV>
<DIV><SPAN class=843265522-05042006><FONT face='"Arial"'>What's the invalid 
syntax in the following code? I tried figuring it out by myself, and I 
couldn't.</FONT></SPAN></DIV>
<DIV><SPAN class=843265522-05042006></SPAN>&nbsp;</DIV>
<DIV><SPAN class=843265522-05042006><FONT face='"Arial"'># This program finds 
the date of Easter Sunday between the years 1900 &amp; 2099.<BR># By Nathan 
Pinno<BR># Inspired by Programming and Problem Solving with Java, 1st ed., 
question 3, page 207.<BR>def date():<BR>&nbsp;&nbsp;&nbsp; int 
year<BR>&nbsp;&nbsp;&nbsp; year = int(raw_input("Year please: 
"))<BR>&nbsp;&nbsp;&nbsp; if (year &lt; 1900 || year &gt; 
2099):<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print year, " is invalid. 
Please enter a year between 1900 &amp; 2099."<BR>&nbsp;&nbsp;&nbsp; 
else:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (year == 1954 || year == 
1981 || year == 2049 || year == 2076): # For the years when the calculation 
would be 1 week 
late.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int 
a, b, c, d, e, 
f<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; a = year 
% 19<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; b = 
year % 4<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; c 
= year % 7<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
d = (19 * a + 24) % 
30<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e = (2 
* b + 4 * c + 6 * d + 5) % 
7<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; f = (22 
+ d + e) - 
7<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (f 
&lt; 31): # To see if the date is in March or 
April.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
print "Easter Sunday is March ", f, 
"."<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
else:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
print "Easter Sunday is April ", (f-31), 
"."<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else: # For all other 
years.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int 
a, b, c, d, e, 
f<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; a = year 
% 19<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; b = 
year % 4<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; c 
= year % 7<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
d = (19 * a + 24) % 
30<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e = (2 
* b + 4 * c + 6 * d + 5) % 
7<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; f = (22 
+ d + e)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
if (f &lt; 31): # Same as 
above.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
print "Easter Sunday is March ", f, 
"."<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
else:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
print "Easter Sunday is April ", (f-31), 
"."<BR>date()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<BR></FONT><FONT face='"Arial"'>The editor highlights the word year in the 
line:</FONT></SPAN></DIV>
<DIV><SPAN class=843265522-05042006></SPAN>&nbsp;</DIV>
<DIV><SPAN class=843265522-05042006><FONT face='"Arial"'>int 
year</FONT></SPAN></DIV>
<DIV><SPAN class=843265522-05042006></SPAN>&nbsp;</DIV>
<DIV><SPAN class=843265522-05042006><FONT face='"Arial"'>after I hit okay when 
this message pops up:</FONT></SPAN></DIV>
<DIV><SPAN class=843265522-05042006></SPAN>&nbsp;</DIV>
<DIV><SPAN class=843265522-05042006><FONT face='"Arial"'>Invalid 
syntax.</FONT></SPAN></DIV>
<DIV><SPAN class=843265522-05042006></SPAN>&nbsp;</DIV>
<DIV><SPAN class=843265522-05042006><FONT face='"Arial"'>Thanks in 
advance,</FONT></SPAN></DIV>
<DIV><FONT face=Arial>Nathan Pinno</FONT></DIV>
<DIV align=left><FONT face=Arial>Web Surfer's Store <A 
href="http://www.websurfstore.ca/">http://www.websurfstore.ca</A></FONT></DIV>
<DIV align=left><FONT face=Arial><A 
href="http://www.the-web-surfers-store.com/"></A></FONT></DIV>
<DIV align=left><FONT face=Arial>MSN Messenger: <A 
href="mailto:falcon3166@hotmail.com">falcon3166@hotmail.com</A></FONT></DIV>
<DIV align=left><FONT face=Arial>Yahoo! Messenger: spam_swatter31</FONT></DIV>
<DIV align=left><FONT face=Arial>ICQ: 199020705</FONT>&nbsp;<FONT face=Arial 
size=2>&nbsp;</FONT></DIV></BODY></HTML>