<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18876"></HEAD>
<BODY>
<DIV><SPAN class=421465419-28012010><FONT size=2 face=Arial>Why am I getting the
following error message. Area has been declared as an attribute of Circle.
Thanks, Ray</FONT></SPAN></DIV>
<DIV><SPAN class=421465419-28012010><FONT size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=421465419-28012010><SPAN lang=EN>
<P><FONT size=2 face=Arial>class Circle:<BR> def
__init__(self):<BR> <SPAN class=421465419-28012010>
</SPAN>self.radius = 1<BR> def area(self):<BR> <SPAN
class=421465419-28012010> </SPAN>return self.radius * self.radius *
3.14159<BR> c = Circle()<BR> c.radius = 3<BR> print
c.area()</FONT></P>
<P><FONT size=2 face=Arial> </FONT></P>
<P><FONT size=2 face=Arial>Traceback (most recent call last):<BR> File
"<pyshell#9>", line 1, in <module><BR> class
Circle:<BR> File "<pyshell#9>", line 8, in
Circle<BR> print c.area()<BR>AttributeError: Circle instance
has no attribute 'area'</FONT></P></SPAN></SPAN></DIV></BODY></HTML>