#!/usr/bin/env python #filename: function.py def say_1(): print 'you got it right' def say_2(): print 'no thats wrong' question = 0 n = 0 while n == 0: question = raw_input('what is 1 + 1? ') if question == '2': say_1() break else: say_2()