In reinforcement learning, the output is an action or sequence of actions which is decided by reward or penalty. The goalis to find the best policy to maxmize the expected sum of the future reward. We also use a discount factor because we dont have to take future reward too seriously.