I want to create a program where a user can type what ever they want
to, have it saved to a file, and the be able to re-open it and read
it. How would I do this? Thanks!
--
http://mail.python.org/mailman/listinfo/python-list
On May 31, 3:25 pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
> On Sat, 31 May 2008 11:44:14 -0700 (PDT), [EMAIL PROTECTED]
> declaimed the following in comp.lang.python:
>
> > I want to create a program where a user can type what ever they want
> > to, have it saved to a file, and the be able t
okay, I'm having this one problem with a text adventure game. It's
kind of hard to explain, but I'll do my best.
[code]
def prompt_kitchen():
global gold
gold_taken = False
while True:
prompt_kit = raw_input('>')
if prompt_kit == 'examine cabinet 1' and not gold_taken:
On Apr 8, 9:25 pm, André <[EMAIL PROTECTED]> wrote:
> On Apr 8, 10:01 pm, [EMAIL PROTECTED] wrote:
>
>
>
> > okay, I'm having this one problem with a text adventure game. It's
> > kind of hard to explain, but I'll do my best.
> > [code]
>
> > def prompt_kitchen():
> > global gold
> > gold_t
On Apr 8, 9:55 pm, André <[EMAIL PROTECTED]> wrote:
> On Apr 8, 10:44 pm, [EMAIL PROTECTED] wrote:
>
>
>
> > On Apr 8, 9:25 pm, André <[EMAIL PROTECTED]> wrote:
>
> > > On Apr 8, 10:01 pm, [EMAIL PROTECTED] wrote:
>
> > > > okay, I'm having this one problem with a text adventure game. It's
> > > >
On Apr 9, 1:24 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
> On Tue, 8 Apr 2008 18:01:01 -0700 (PDT), [EMAIL PROTECTED]
> declaimed the following in comp.lang.python:
>
> > okay, I'm having this one problem with a text adventure game. It's
> > kind of hard to explain, but I'll do my best.
> >
On Apr 10, 3:14 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
> On Wed, 9 Apr 2008 05:25:19 -0700 (PDT), [EMAIL PROTECTED]
> declaimed the following in comp.lang.python:
>
>
>
> > I can't even compile your code to see how it works, Dennis. I'm
> > confused about what that does.
>
> My ap
On Apr 11, 1:40 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
> On Thu, 10 Apr 2008 05:06:42 -0700 (PDT), [EMAIL PROTECTED]
> declaimed the following in comp.lang.python:
>
> > okay, that explains it...
> > could you provide a working example of a two-room game using your
> > method please so I
On Apr 11, 10:16 am, [EMAIL PROTECTED] wrote:
> On Apr 11, 1:40 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
>
> > On Thu, 10 Apr 2008 05:06:42 -0700 (PDT), [EMAIL PROTECTED]
> > declaimed the following in comp.lang.python:
>
> > > okay, that explains it...
> > > could you provide a working exa