"how to think like a computer scientist"

john boy xray_alpha_charlie at yahoo.com
Sun Nov 6 15:38:37 EST 2005


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" 
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
 
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 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20051106/083ead45/attachment.html>


More information about the Python-list mailing list