Skip to content

Instantly share code, notes, and snippets.

@aniruddha27
Created May 16, 2020 20:17
Show Gist options
  • Select an option

  • Save aniruddha27/c890818cffa294cd27ae86e9f876f019 to your computer and use it in GitHub Desktop.

Select an option

Save aniruddha27/c890818cffa294cd27ae86e9f876f019 to your computer and use it in GitHub Desktop.
sample = ['data science', 'business analytics', 'machine learning']
# generating an iterator
it = sample.__iter__()
print(it.__next__())
print(it.__next__())
print(it.__next__())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment