import gym
import numpy as np
# Create the MountainCar environment with render_mode
env = gym.make("MountainCar-v0", render_mode="human") # Specify render_mode
LEARNING_RATE = 0.1
DISCOUNT = 0.95
EPISODES = 25000
DISCRETE_OS_SIZE = [20] * len(env.observation_space.high)
discrete_os_win_size = (env.observation_space.high - env.observation_space.low) / DISCRETE_OS_SIZE
discrete_os_win_size = np.array(discrete_os_win_size, dtype=object)
q_table = np.random.uniform(low = -2, high = 0, size = (DISCRETE_OS_SIZE + [env.action_space.n]))