Which AI learning type uses trial and error for training?

Explanation:
Reinforcement Learning trains agents through rewards and penalties.