def print_activity(quest: dict):
    """Print content of activity."""
    val = 'Yes'
    print('========================')
    print('name         : {}'.format(quest['name']))
    print('coef         : {}'.format(quest['coefficient']))
    print('type         : {}'.format(quest['type']))
    if quest['eliminate'] is None:
        val = 'No'
    print('eliminate    : {}'.format(val))
    try:
        print('mark min     : {}'.format(quest['mark_min']))
        print('mark max     : {}'.format(quest['mark_max']))
        print('average mark : {}'.format(quest['average_mark']))
        print('student mark : {}'.format(quest['student_mark']))
    except KeyError:
        pass
    print('starts on    : {}'.format(quest['date_start']))
    print('ends on      : {}'.format(quest['date_end']))
