def assign_role_for_exploration(committer_id, exploration_id, assignee_id, new_role):
 _assign_role(committer_id, assignee_id, new_role, exploration_id, feconf.ACTIVITY_TYPE_EXPLORATION)
 if (new_role in [ROLE_OWNER, ROLE_EDITOR]):
  subscription_services.subscribe_to_exploration(assignee_id, exploration_id)

def assign_role_for_exploration ( committer_id , exploration_id , assignee_id , new_role ) : _assign_role ( committer_id , assignee_id , new_role , exploration_id , feconf . ACTIVITY_TYPE_EXPLORATION ) if ( new_role in [ ROLE_OWNER , ROLE_EDITOR ] ) : subscription_services . subscribe_to_exploration ( assignee_id , exploration_id )
assign assignee_id to the given role and subscribes the assignee to future exploration updates .