View Problem

Perform different actions depending on a boolean condition (IF .. THEN .. ELSE)

Given a variable age, if the value is greater than 42 display "You are old", otherwise display "You are young"
DiskEdit
python
if age > 42:
print 'You are old'
else:
print 'You are young'
DiskEdit
python
print age > 42 and 'You are old' or 'You are young'

Submit a new solution for python
There are 33 other solutions in additional languages (clojure, cpp, csharp, erlang ...)