Re: [Tutor] no output

2009-03-22 Thread John Jenkinson
On Mon, Mar 23, 2009 at 12:08 AM, John Jenkinson wrote: > My Code: > > # Game Over - Version 2.0 > # Demonstrates the use of quotes in strings > > print "Program 'Game Over' 2.0" > > print \ > """ > - --- --- ---- > / ___|/ | / |/ | | ___| > |

[Tutor] no output

2009-03-22 Thread John Jenkinson
My Code: # Game Over - Version 2.0 # Demonstrates the use of quotes in strings print "Program 'Game Over' 2.0" print \ """ - --- --- ---- / ___|/ | / |/ | | ___| | | / /| | / /| / | | |__ | | _ / ___ | / / |__/ |

Re: [Tutor] Syntax error

2009-03-22 Thread John Jenkinson
I understand. I am following a tutorial that has a typo. Quoting from the text: The last line of the program: raw input("\n\nPress the enter key to exit.") I enjoyed your intuitive explanation, thank you. On Sun, Mar 22, 2009 at 11:30 PM, Marc Tompkins wrote: > On Sun, Mar 22, 2009 at 8:35 P

Re: [Tutor] Syntax error

2009-03-22 Thread Marc Tompkins
On Sun, Mar 22, 2009 at 8:35 PM, John Jenkinson wrote: > I am trying to write a program that displays the string expression "Game > Over", in a console window that remains open. > > my code is as follows: > > # Game Over console window > > print "Game Over" > raw input("\n\nPress the enter key to

Re: [Tutor] Syntax error

2009-03-22 Thread John Jenkinson
Mark, The error poped up in a message box, I was unable to (cut and paste), or I would have done so. On Sun, Mar 22, 2009 at 11:18 PM, Mark Tolonen > wrote: > It is helpful to know the exact error message (cut and paste) and the > version of Python you are using. In Python 3.x the print stat

Re: [Tutor] Syntax error

2009-03-22 Thread Mark Tolonen
It is helpful to know the exact error message (cut and paste) and the version of Python you are using. In Python 3.x the print statement would produce a syntax error. In any Python "raw input" is a syntax error. "raw_input" is the correct function name, unless you are using 3.x where it was r

[Tutor] Syntax error

2009-03-22 Thread John Jenkinson
I am trying to write a program that displays the string expression "Game Over", in a console window that remains open. my code is as follows: # Game Over console window print "Game Over" raw input("\n\nPress the enter key to exit.") The error I am recieve is "There is an error in your progra

Re: [Tutor] irregular/parse/sort

2009-03-22 Thread Mark Tolonen
wrote in message news:d08.50baad3e.36f80...@aol.com... I've been using re.sub() to try and take the below pattern1 and convert it to pattern2 (which are below) below that is mycode1. Does anyone have any suggestions as to how I can figure this out? pattern1 NTR+A0001 0.01 GLU-A0003 8.21 GLU-A0

Re: [Tutor] Inspiration/examples

2009-03-22 Thread Kent Johnson
On Sun, Mar 22, 2009 at 6:02 PM, Mathias Andersson wrote: > Hi all! > > Im currently trying to learn how to use python. But my only problem seems to > be at what to make? So anyone have a nifty list or some ideas on things to > program, school tasks or algorithms to try and implement. Beginner- to

[Tutor] irregular/parse/sort

2009-03-22 Thread Sutak
I've been using re.sub() to try and take the below pattern1 and convert it to pattern2 (which are below) below that is mycode1. Does anyone have any suggestions as to how I can figure this out? pattern1 NTR+A0001 0.01 GLU-A0003 8.21 GLU-A0008 3.619 ARG+A0010 14 ARG+A0023 14 ARG+A0024 14 ASP-

Re: [Tutor] Inspiration/examples

2009-03-22 Thread Alan Gauld
"Mathias Andersson" wrote Im currently trying to learn how to use python. But my only problem seems to be at what to make? I have a list of ideas in my tutor appendix References, Books and Projects Also there is the Python Challenge "adventure game" And finally the Useless Python site h

Re: [Tutor] Inspiration/examples

2009-03-22 Thread Ian Egland
I am just as interested in this. So far I've found http://openbookproject.net/pybiblio/practice/ from the openbookproject. -Ian On Sun, Mar 22, 2009 at 6:02 PM, Mathias Andersson wrote: > Hi all! > > Im currently trying to learn how to use python. But my only problem seems > to be at what to ma

[Tutor] Inspiration/examples

2009-03-22 Thread Mathias Andersson
Hi all! Im currently trying to learn how to use python. But my only problem seems to be at what to make? So anyone have a nifty list or some ideas on things to program, school tasks or algorithms to try and implement. Beginner- to mid-skill level. Thanks in advance. /Mathias _

Re: [Tutor] Opening a cmd.exe

2009-03-22 Thread Alan Gauld
"Mark Tolonen" wrote Does this do what you want? It creates a new cmd window titled "Dir", then executes some commands. import os os.system('start cmd /c title Dir ^&^& dir ^&^& pause') It didn't do quite what I expected, but it made me look at the help for start, which says: ==

Re: [Tutor] Opening a cmd.exe

2009-03-22 Thread Mark Tolonen
"Tim Golden" wrote in message news:49c65068.2080...@timgolden.me.uk... Tim Golden wrote: Alan Gauld wrote: "Sigga Sig" wrote I am writing a code that is supoesed to act as routers and i need to open a different cmd window for each one of them with it's name and so on. I do not know how

Re: [Tutor] Opening a cmd.exe

2009-03-22 Thread bob gailer
Sigga Sig wrote: Hello I am writing a code that is supoesed to act as routers and i need to open a different cmd window for each one of them with it‘s name and so on. Why are you opening cmd windows? The only reason I can imagine is that a human will be typing commands into them. If that

Re: [Tutor] Opening a cmd.exe

2009-03-22 Thread Tim Golden
Tim Golden wrote: Alan Gauld wrote: "Sigga Sig" wrote I am writing a code that is supoesed to act as routers and i need to open a different cmd window for each one of them with it's name and so on. I do not know how to implement in mi Python cod a sentece that opens such a cmd. I know how

Re: [Tutor] Opening a cmd.exe

2009-03-22 Thread Tim Golden
Alan Gauld wrote: "Sigga Sig" wrote I am writing a code that is supoesed to act as routers and i need to open a different cmd window for each one of them with it's name and so on. I do not know how to implement in mi Python cod a sentece that opens such a cmd. I know how to open a cmd.exe b

Re: [Tutor] Opening a cmd.exe

2009-03-22 Thread Alan Gauld
"Sigga Sig" wrote I am writing a code that is supoesed to act as routers and i need to open a different cmd window for each one of them with it's name and so on. I do not know how to implement in mi Python cod a sentece that opens such a cmd. I know how to open a cmd.exe bud not with specif

[Tutor] Opening a cmd.exe

2009-03-22 Thread Sigga Sig
Hello I am writing a code that is supoesed to act as routers and i need to open a different cmd window for each one of them with it's name and so on. I do not know how to implement in mi Python cod a sentece that opens such a cmd. I know how to open a cmd.exe bud not with specific attributes tha