room == start is a comparison (check if room is equal to start - doesn&#39;t make a whole lot of sense to be doing that here).&nbsp; The &quot;room&quot; variable name doesn&#39;t exist in the current namespace, so it can&#39;t be compared to start.&nbsp; It looks like you wanted room = start.<br>
<br><div><span class="gmail_quote">On 10/2/08, <b class="gmail_sendername">nathan virgil</b> &lt;<a href="mailto:sdragon1984@gmail.com">sdragon1984@gmail.com</a>&gt; wrote:</span><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">Okay, I&#39;m resurrecting this project. I did a little more work on it
then what you see here, but that ended up getting accidentally deleted,
and I haven&#39;t done anything with Python since.<br><br>I&#39;m running into
one problem already, and I haven&#39;t really added any extra code. In the
content (at this point, the rooms still have Bob&#39;s descriptions), the
very first line of actual code (third line in the program) is returning
an error.<br>
<br>Offending code:<br><br># Content<span class="q"><div><br># retrieve data for current room<br></div></span>room == start<br>while true:<br>&nbsp;&nbsp;&nbsp; if room == start:<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; desc = &quot;Ahead of you, you see a chasm.&quot;<br>

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ques = &quot;Do you wish to try jumping over it? Y/N&quot;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; destY = 2<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; destN = 3<br><br>Error:<br><br>Traceback (most recent call last):<br>&nbsp; File &quot;samplegame.py&quot;, line 3, in &lt;module&gt;<br>&nbsp;&nbsp;&nbsp; room == start<br>NameError: name &#39;room&#39; is not defined<br>


<br><br>What&#39;s going on here?</div>
<br>_______________________________________________<br>
Tutor maillist &nbsp;- &nbsp;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Tutor@python.org">Tutor@python.org</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
<br></blockquote></div><br>