A simple if-else:
a = 1
if a == 1:
print('True') #Python 2.x - print 'True'
else:
print('false') #Python 2.x - print 'false'
This will give the output as follows:
True
Using if-else, you can create many kinds of small command-line applications.