#comments
Dan Perl
dperl at rogers.com
Mon Sep 13 21:30:47 EDT 2004
You're missing a comma between the arguments in "print". Here is how it
should be:
data=raw_input("Type something ") # spaces after "something"
myInput=data
print "You typed ", myInput # and again
print "The fourth character is ", myInput[3] # 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...
> Hi,
> New to this game. Have tried the following.
>
> data=raw_input("Type something ") # spaces after "something"
> myInput=data
> print "You typed " myInput # and again
> print "The fourth character is "myInput[3] # 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?
>
> Ken.
>
More information about the Python-list
mailing list