A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/312963.html below:

Question About Logic In Python

Question About Logic In Python Question About Logic In PythonJames H. james.herdman at gmail.com
Sun Sep 18 20:20:04 EDT 2005
Greetings!  I'm new to Python and am struggling a little with "and" and
"or" logic in Python.  Since Python always ends up returning a value
and this is a little different from C, the language I understand best
(i.e. C returns non-zero as true, and zero as false), is there anything
I should be aware of given Python's different approach?  Namely any
pitfalls or neat tricks that make the Python approach cool or save my
butt.

Thank you!

James


More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4