def form_statement(main_dict, subject, verb, object):
    greetings = main_dict.get(subject, '')
return '{} {} {} {}'.format(subject, verb, object, greetings)
More pythonic way for a conditional variable