Over a million developers have joined DZone.

Conditional Operator In Python

·
Python sports a slightly different syntax:


value_when_true if condition else value_when_false


Source: http://en.wikipedia.org/wiki/Conditional_operator#Python
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}