Skip to content

Instantly share code, notes, and snippets.

@StrikingLoo
Created August 19, 2018 16:35
Show Gist options
  • Select an option

  • Save StrikingLoo/c6e05735e2dbc5233f66d31ec349ccee to your computer and use it in GitHub Desktop.

Select an option

Save StrikingLoo/c6e05735e2dbc5233f66d31ec349ccee to your computer and use it in GitHub Desktop.
def num_object(k):
return {'number':k, 'double':2*k}
many_instances = [num_object(k) for k in range(20)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment