Skip to content

Instantly share code, notes, and snippets.

@eLtronicsVilla
Created May 24, 2019 13:43
Show Gist options
  • Save eLtronicsVilla/e8b42cd7729c2a5a6ed0b0ac6ba7b4f6 to your computer and use it in GitHub Desktop.
Save eLtronicsVilla/e8b42cd7729c2a5a6ed0b0ac6ba7b4f6 to your computer and use it in GitHub Desktop.
# Create the data
d_data = [1,3,4,5,6,7,8]
# Define a function
def data_range(data):
return max(data) - min(data)
print(data_range(d_data))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment