room == start is a comparison (check if room is equal to start - doesn't make a whole lot of sense to be doing that here). The "room" variable name doesn't exist in the current namespace, so it can't be compared to start. 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> <<a href="mailto:sdragon1984@gmail.com">sdragon1984@gmail.com</a>> 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'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't done anything with Python since.<br><br>I'm running into
one problem already, and I haven't really added any extra code. In the
content (at this point, the rooms still have Bob'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> if room == start:<br> desc = "Ahead of you, you see a chasm."<br>
ques = "Do you wish to try jumping over it? Y/N"<br>
destY = 2<br> destN = 3<br><br>Error:<br><br>Traceback (most recent call last):<br> File "samplegame.py", line 3, in <module><br> room == start<br>NameError: name 'room' is not defined<br>
<br><br>What's going on here?</div>
<br>_______________________________________________<br>
Tutor maillist - <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>