I'm just learning python so sorry for what is probably a simple question.
Following Zed Shaw's 'learn python the hard way' I made a little text game (ex36). It defines the functions start() and litroom(), then runs start(), which in turn runs litroom() depending on user input.
How would I import only the litroom() function to another file? If I try
from ex36 import litroom it seems to import the lot and run start().
Thanks for any help!
ex36in the magicif __name__=='__main_':so it does not get executed at import