def points(a, b, answer_given):    
    """Check answer. Correct: 1 point, else 0"""
    true_answer = a*b        
    if answer_given == true_answer:
        print('Correct!')
        return 1
    else:
        print('Sorry! Correct answer was: {:d}'.format(true_answer))
        return 0