Credit: Chris Piech
Handouts: KarelReference
Worked Examples: UN Karel
File: mountain_karel.py
Karel dreams of climbing mountains. Teach her to get to the top of a mountain of any height. For example, for the following mountain:
Karel should climb to the top and leave a flag (a beeper) at the summit as shown bellow:
Unlike the previous problems, you are not guaranteed the height of the mountain before hand. The program you write should allow Karel to climb mountains of any size. For example the following three:
You can assume:
Use while loops.