<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2995" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Need some help in python.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>How do i make the user choose wheter or not to pick 
it up? (i can do picking up an item from a list):<BR><EM></EM></FONT></DIV>
<DIV><FONT face=Arial size=2><EM><STRONG>objectsCarried = 
[]</STRONG></EM></FONT></DIV>
<DIV><EM><STRONG></STRONG></EM>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><EM><STRONG>inventory = 
['bat']<BR>lengthOfInventory =len(inventory)</STRONG></EM></FONT></DIV>
<DIV><EM><STRONG></STRONG></EM>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><EM><STRONG>print 'The room 
holds:'</STRONG></EM></FONT></DIV>
<DIV><EM><STRONG></STRONG></EM>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><EM><STRONG>for item in 
range(lengthOfInventory):<BR>&nbsp;&nbsp;&nbsp; print item, 
inventory[item]</STRONG></EM></FONT></DIV>
<DIV><EM><STRONG></STRONG></EM>&nbsp;</DIV><FONT face=Arial size=2>
<DIV><BR><EM><STRONG>numberChosen = int(raw_input('use the number to pick up an 
item '))</STRONG></EM></DIV>
<DIV><EM><STRONG></STRONG></EM>&nbsp;</DIV>
<DIV><EM><STRONG>objectChosen = inventory[numberChosen]</STRONG></EM></DIV>
<DIV><EM><STRONG></STRONG></EM>&nbsp;</DIV>
<DIV><EM><STRONG>objectsCarried.append(objectChosen)<BR>inventory.remove(objectChosen)</STRONG></EM></DIV>
<DIV><EM><STRONG></STRONG></EM>&nbsp;</DIV>
<DIV><EM><STRONG>print 'you are carrying '<BR>for item in 
objectsCarried:<BR>&nbsp;&nbsp;&nbsp; print item</STRONG></EM></DIV>
<DIV><EM><STRONG></STRONG></EM>&nbsp;</DIV>
<DIV><EM><STRONG>print</STRONG></EM></DIV>
<DIV><EM><STRONG></STRONG></EM>&nbsp;</DIV>
<DIV><EM><STRONG>print 'The room now holds:'</STRONG></EM></DIV>
<DIV><EM><STRONG></STRONG></EM>&nbsp;</DIV>
<DIV><EM><STRONG>for item in inventory:<BR>&nbsp;&nbsp;&nbsp; print 
item</STRONG></EM><BR>&nbsp;<BR>But i cant do when u have a choice to pick up or 
not.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Also if not too much trouble then how can i do: <BR>&nbsp; <BR>IF the user 
picks the bat up then when he comes across the vampire then he kills it, but if 
he hasnt pickd up the bat then he dies? <BR>&nbsp; <BR>Thanks in advance</DIV>
<DIV>&nbsp;</DIV>
<DIV>P.S. Could u plz email sum code</FONT></DIV></BODY></HTML>