help with simple print statement!

Bruce Krayenhoff wbrucek at gmail.com
Fri Aug 24 16:29:59 EDT 2012


Thank-you all, it works now!


Best Wishes,

     Bruce
     C: 604-441-5791
 
<https://www.google.com/calendar/embed?src=ecuiatvm07anmj3ch314if3gns%40grou
p.calendar.google.com&ctz=America/Vancouver> My Availability 

 

From: python-list-bounces+wbrucek=gmail.com at python.org
[mailto:python-list-bounces+wbrucek=gmail.com at python.org] On Behalf Of Chris
Kaynor
Sent: August-24-12 12:54 PM
To: python-list at python.org
Subject: Re: help with simple print statement!

 

On Fri, Aug 24, 2012 at 12:43 PM, Willem Krayenhoff <wbrucek at gmail.com
<mailto:wbrucek at gmail.com> > wrote:

Any idea why print isn't working here?  

 

I tried restarting my Command prompt.  Also, print doesn't work inside a
class.

 

 

 

In Python 3, print was made into a function rather than a statement for
various reasons (I'll leave it to the reader to find sources as to why). You
just need to call it rather than use it as a statement.

 

-- 
Best Wishes,

     Bruce
     C: 604-441-5791 <tel:604-441-5791> 
     My Availability
<https://www.google.com/calendar/embed?src=ecuiatvm07anmj3ch314if3gns%40grou
p.calendar.google.com&ctz=America/Vancouver>  


--
http://mail.python.org/mailman/listinfo/python-list

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120824/5216d5c2/attachment.html>


More information about the Python-list mailing list