Challenge: Setting Up an Environment
Task
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.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 8
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 2.7
Challenge: Setting Up an Environment
Swipe to show menu
Task
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.
Solution
Everything was clear?
Thanks for your feedback!
Awesome!
Completion rate improved to 2.7SectionΒ 1. ChapterΒ 8
single