Skip to content

Instantly share code, notes, and snippets.

@Jay-flow
Created May 7, 2020 01:10
Show Gist options
  • Save Jay-flow/923082d435666041ede4ee06bfd2921f to your computer and use it in GitHub Desktop.
Save Jay-flow/923082d435666041ede4ee06bfd2921f to your computer and use it in GitHub Desktop.
exampe_code for python comprehension
def example_code(list_of_product_data):
kinds = []
for product in list_of_product_data:
if product == 'specific_kind':
kinds.append(product)
return kinds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment