[Tutor] Print text position problems when using triple quotes

2005-02-24 Thread Luke Jordan
Hi all, I've tried a lot of experimenting and searching through various tutorials, and I haven't been able to come up with a solution to this, ostensibly simple, problem. I'm writing a simple game (run in command line) in which narrative text is printed in response to a user's decisions. The

Re: [Tutor] Print text position problems when using triple quotes

2005-02-24 Thread Bill Mill
On Thu, 24 Feb 2005 13:14:13 -0500, Bill Mill [EMAIL PROTECTED] wrote: On Thu, 24 Feb 2005 10:02:44 -0800, Luke Jordan [EMAIL PROTECTED] wrote: Hi all, I've tried a lot of experimenting and searching through various tutorials, and I haven't been able to come up with a solution to this,

Re: [Tutor] Print text position problems when using triple quotes

2005-02-24 Thread Luke Jordan
Execllent. Many Thanks, Luke On Thu, 24 Feb 2005 13:15:41 -0500, Bill Mill [EMAIL PROTECTED] wrote: On Thu, 24 Feb 2005 13:14:13 -0500, Bill Mill [EMAIL PROTECTED] wrote: On Thu, 24 Feb 2005 10:02:44 -0800, Luke Jordan [EMAIL PROTECTED] wrote: Hi all, I've tried a

Re: [Tutor] Print text position problems when using triple quotes

2005-02-24 Thread Kent Johnson
Bill Mill wrote: class foo: def bar(self): Sorry, I forgot that if it's in the module, you should declare prompt1 as global by using global prompt1 right here. print prompt1 % (var1, var2, var3) No, you only need the global statement if you want to assign to a global variable.

Re: [Tutor] Print text position problems when using triple quotes

2005-02-24 Thread Danny Yoo
I'm writing a simple game (run in command line) in which narrative text is printed in response to a user's decisions. The problem I'm running into is that triple quotes used in an indented block preserves the indentation when it prints. [text cut] Why not just take them out

Re: [Tutor] Print text position problems when using triple quotes

2005-02-24 Thread Bill Mill
On Thu, 24 Feb 2005 14:23:28 -0500, Kent Johnson [EMAIL PROTECTED] wrote: Bill Mill wrote: class foo: def bar(self): Sorry, I forgot that if it's in the module, you should declare prompt1 as global by using global prompt1 right here. print prompt1 % (var1, var2, var3)