Creating Code Snippets For example, if a developer wants to create a function that calculates the average of a list of numbers, they can get a code snippet for calculating the average of a list of numbers, by simply asking chatGPT for help.