Cody Bable

Generation

generate functionFri, 28 Apr 2023

create a function to copy turtle coordinates from user mouse clicks on the screen

def get_coordinates(): coordinates = [] def add_coordinate(x, y): coordinates.append((x, y)) screen.onclick(add_coordinate) return coordinates

Questions about programming?Chat with your personal AI assistant