Ok...I'm new to Python..and of course am already having troubles.
I have tried the following example from "how to think like a
computer
> scientist"
>
> def newline():
> print
>
> print "firstline"
> newline()
> print "secondline"
>
> problem is....whenever I type -print "firstline"- and then hit
enter...well
> it follows the command and gives "firstline"
computer
> scientist"
>
> def newline():
>
> print "firstline"
> newline()
> print "secondline"
>
> problem is....whenever I type -print "firstline"- and then hit
enter...well
> it follows the command and gives "firstline"
EX.
>
>
print "firstline"
> firstline
>
> instead of giving me a chance to type in -newline()-
> and thus completing the example which when finished should look like this:
> firstline
>
> instead of giving me a chance to type in -newline()-
> and thus completing the example which when finished should look like this:
firstline
secondline
Can anybody tell me what is going on here?
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-- http://mail.python.org/mailman/listinfo/python-list