def south_right_turn(rover: Rover) -> Rover: ''' Command to turn a South facing rover right. Parameters ---------- rover : Rover Rover receiving the command. Returns ------- Rover State of the rover after processing the command. ''' rover.direction = 'W' return rover
def east_left_turn(rover: Rover) -> Rover: ''' Command to turn an East facing rover left. Parameters ---------- rover : Rover Rover receiving the command. Returns ------- Rover State of the rover after processing the command. ''' rover.direction = 'N' return rover