~cpp def turn_right(): repeat(turn_left, 3) def move2(): if next_to_a_beeper(): pick_beeper() move() else: move() def move3(): move() ifif() turn_left() repeat(move2, 5) ifif() turn_left() turn_left() ifif() repeat(move2, 5) turn_left() ifif() def ifif(): if next_to_a_beeper(): pick_beeper() repeat(move3, 6) turn_off()