Skip to content

Instantly share code, notes, and snippets.

@iCodePoet
Last active May 7, 2020 01:41
Show Gist options
  • Select an option

  • Save iCodePoet/0a69021966653a559d26ad65ea8f7093 to your computer and use it in GitHub Desktop.

Select an option

Save iCodePoet/0a69021966653a559d26ad65ea8f7093 to your computer and use it in GitHub Desktop.
example code for python dictinary comprehension
def example_code(list_of_product_data):
return {
index: product for index, product in enumberate(list_of_product_data)
if prodcut == 'specific_kind'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment