Skip to content

Instantly share code, notes, and snippets.

@BexTuychiev
Created July 9, 2020 07:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BexTuychiev/30ded2af585d04f54928a3dc80fc2f4e to your computer and use it in GitHub Desktop.
Save BexTuychiev/30ded2af585d04f54928a3dc80fc2f4e to your computer and use it in GitHub Desktop.
import types
generator = (number for number in range(10))
if isinstance(generator, types.GeneratorType):
print("Finally, a generator!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment