help with simple print statement!
Chris Kaynor
ckaynor at zindagigames.com
Fri Aug 24 15:53:52 EDT 2012
On Fri, Aug 24, 2012 at 12:43 PM, Willem Krayenhoff <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.
>
> [image: Inline image 2]
>
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
> My Availability<https://www.google.com/calendar/embed?src=ecuiatvm07anmj3ch314if3gns%40group.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/a921d49e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 11319 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20120824/a921d49e/attachment.png>
More information about the Python-list
mailing list