Challenge: Setting Up an Environment
Oppgave
Swipe to start coding
You are asked to setup a "CartPole-v1"
Gymnasium environment and write a basic interaction loop.
- Import the
gymnasium
library. - Initialize the
"CartPole-v1"
environment. - Reset the environment.
- Complete the interaction loop by making a step in the environment.
- Close the environment after the loop.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 8