blob: 4ddd31cab59ddf5bc3eb3f274faf82c33742794a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
'''Function to print a colored line to terminal'''
RED='\033[0;31m%s\033[m'
def print_colored(message, color=RED):
print color % message
if __name__ == '__main__':
print '42 - the answer'
print_colored("But what's the question?")
print 'Hum?'
|