dperl at rogers.com
Tue Sep 14 03:30:47 CEST 2004
You're missing a comma between the arguments in "print". Here is how it
data=raw_input("Type something ") # spaces after "something"
print "You typed ", myInput # and again
print "The fourth character is ", myInput # and again
"Ken Parkes" <cbuffer at NOSPAMrosecott.ukfsn.org> wrote in message
news:pan.2004.09.13.21.27.31.291385 at NOSPAMrosecott.ukfsn.org...
> New to this game. Have tried the following.
> data=raw_input("Type something ") # spaces after "something"
> print "You typed " myInput # and again
> print "The fourth character is "myInput # and again
> When I run it in the shell I get error warnings for the second comment
> ( actually pointing to the t of myInput ) If I remove the comment I get
> one for the third comment. What is wrong please?
More information about the Python-list