from The American Heritage® Dictionary of the English Language, 4th Edition
- adj. Composed of three or arranged in threes.
- adj. Mathematics Having the base three.
- adj. Mathematics Involving three variables.
- n. A group of three.
from Wiktionary, Creative Commons Attribution/Share-Alike License
- adj. Made up of three things; treble, triadic, triple, triplex
- adj. Arranged in groups of three
- adj. To the base three
- adj. Having three variables
- n. A group of three things; a trio, threesome or tierce
from the GNU version of the Collaborative International Dictionary of English
- adj. Proceeding by threes; consisting of three.
- adj. Containing, or consisting of, three different parts, as elements, atoms, groups, or radicals, which are regarded as having different functions or relations in the molecule.
- n. A ternion; the number three; three things taken together; a triad.
from The Century Dictionary and Cyclopedia
- In mathematics, having three variables.
- In old chemistry, applied by Dalton to substances consisting of three atoms — either A + 2 B or 2 A + B.
- n. A trinity.
- Proceeding by threes; consisting of three: as, a ternary flower (that is, one having three members in each cycle); a ternary chemical substance (that is, one composed of three elements).
- n. The number three; a group of three.
from WordNet 3.0 Copyright 2006 by Princeton University. All rights reserved.
- adj. having three units or components or elements
- n. the cardinal number that is the sum of one and one and one
The Python ternary is that undead () if 'yes' else 'grr. argh.'
A century earlier, Franco of Cologne had explicitly associated the idea of ternary rhythm with the Christian trinity, but from now onwards, every value had to be able to be divided by either two or three.
The lottery schemes are what is known as the ternary combination of seventy-eight numbers, being one to seventy eight, inclusive; or, in other words, 'three number' schemes.
Because most languages only have one operator that requires three arguments, it is known as the ternary operator, although in theory there could be more.
This is essentially an if statement but in a more concise form known as a ternary operator, and would be no different than writing:
Lines 5 through 7 use a "ternary" operator that basically says, "If the left css property equals 0, move the element to the left as many pixels as it is wide (including padding and border); if not, move it back to 0."
"The lottery schemes are what is known as the ternary combination of seventy-eight numbers, being one to seventy-eight, inclusive; or in other words, 'three number' schemes.
I must say that Python's ternary operator is really ugly, though.
You can easily replicate ternary functionality using tuples then the conditional to select the appropriate one. e.g. ( "b", "a") [True] 'a'
If you want it to read like a typical ternary, you can do 'cond and "a" or "b"' to achieve the same result. e.g. True and "a" or "b"