reinforcement learning is a powerful machine learning approach that involves letting agents interact with an…