Homework 7
Instructions:
- Show ALL Work, Neatly and in Order.
- No credit for Answers Without Work.
- Submit a single PDF file including all solutions.
- DO NOT submit individual files or images.
- For coding questions, submit ONE.pyfile with comments.
Note
For this homework, you only need numpy, gymnasium, os, pickle, tqdm & tensorboard.

Coding Exercise 1: Semi-Gradient SARSA
For the MountainCar-v0 environment, code the update function for Semi-Gradient SARSA algorithm using the provided parameters.