Question: done in python please Write a Python function, called remove_wallpaper(), that instructs Reeborg how to do the Remove the Wallpaper task. Assume Reeborg starts facing
done in python please
Write a Python function, called remove_wallpaper(), that instructs Reeborg how to do 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 beeper on it, Reeborg should remove the beeper. (Any beepers not on the perimeter are ignored.) Write only one function. Do not use a turn_off() in your function. Do not define any additional functions. Do not use any variables (although for statements are okay) or recursion---this problem must be solved classically using only the usual Reeborg constructs. (Use spaces to indent, not the tab key.) Write a Python function, called remove_wallpaper(), that instructs Reeborg how to do 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 beeper on it, Reeborg should remove the beeper. (Any beepers not on the perimeter are ignored.) Write only one function. Do not use a turn_off() in your function. Do not define any additional functions. Do not use any variables (although for statements are okay) or recursion---this problem must be solved classically using only the usual Reeborg constructs. (Use spaces to indent, not the tab key.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
