p at ulmcnett.com
Mon Sep 13 23:36:34 CEST 2004
Your subject is about comments, but your problem is with
your print statements. See below.
Ken Parkes writes:
> data=raw_input("Type something ") # spaces after
> "something" myInput=data
> print "You typed " myInput # and again
> print "The fourth character is " myInput # and
data=raw_input("Type something ") # spaces after "something"
print "You typed %s" % myInput # and again
print "The fourth character is %s" % myInput # and again
print "There is no fourth character."
Independent Software Consultant
More information about the Python-list