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 \
> """
> - --- --- ----
> / ___|/ | / |/ | | ___|
> |
My Code:
# Game Over - Version 2.0
# Demonstrates the use of quotes in strings
print "Program 'Game Over' 2.0"
print \
"""
- --- --- ----
/ ___|/ | / |/ | | ___|
| | / /| | / /| / | | |__
| | _ / ___ | / / |__/ |
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
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
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
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
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
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
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
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-
"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
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
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
_
"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:
==
"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
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
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
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
"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
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
20 matches
Mail list logo