<br><br><div class="gmail_quote">On Sun, Oct 25, 2009 at 10:10 PM, Luke Paireepinart <span dir="ltr"><<a href="mailto:rabidpoobear@gmail.com">rabidpoobear@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote"><div> <br></div><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr"><div>
<div>2- in the final few lines where I assign an object to the class, I notice that a parameter was entered in the class name, "Robot(D23)", although when defining the class I didn't put any arguments for it.</div>
</div></div></blockquote></div><div>Yes you did,<br>__init__ takes 2 parameters, "self" and "name". When constructing a new object via Robot(D23) you are implicitly passing "self" and you are explicitly passing 'D23' as "self".<br>
</div></div></blockquote><div><br>Correction,<br> When constructing a new object via Robot(<b>'D23'</b>) you are implicitly passing "self" and you are explicitly passing 'D23' as "<b>name</b>".<br>
<br>
</div></div>