Python Development Course
Chapter
>
Level
Introduction to Python
Apply what you’ve learned
Objective
Push rocks, collect logs and build bridges in order to walk to the exit and complete the level.
Your path to the exit, represented by the star at the end of the level, is blocked by rocks and by incomplete bridges.
Use the push() function to push the rocks in the direction you're facing. Once you collect four logs head for the X marks and use the build() function to get across the water.
To use build() and write bridge to complete the bridges. You must enter the word “bridge” exactly as written in order to build successfully.
In case you need a refresher, to push you write: player.push() and to build a bridge after collecting four logs you write: player.build("bridge")
Code book