Question: 34. (8 pts) Write a complete Python program to implement the Remove the Wallpaper task. Assume Reeborg starts facing South in the Northwest corner of
34. (8 pts) Write a complete Python program to implement the "Remove the Wallpaper" task. Assume Reeborg starts facing South in the Northwest corner of a completely enclosed rectangular room (with no interior walls). The room is at least. two streets high and two avenues wide. There will be either one or zero beepers on any street corner. Program Reeborg to remove any beepers that may line the perimeter of the room. That is, for each street corner that is adjacent to a wall and has a beper on it, Reeborg should remove the beeper. (Any beepers not on the perimeter are ignored.) This program is short enough to be coded entirely as just a main() routine-do so. Do not define any additional functions. However DO invoke the main() routine at the bottom of your program. Do no use any variables (although it's alright if you use a for statement). To minimize your writing, dou't write comments
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
