Skip to content

Instantly share code, notes, and snippets.

@marksagal
Last active October 17, 2017 23:28
Show Gist options
  • Select an option

  • Save marksagal/71d61e9d53668ed9d7772400ea3b8885 to your computer and use it in GitHub Desktop.

Select an option

Save marksagal/71d61e9d53668ed9d7772400ea3b8885 to your computer and use it in GitHub Desktop.
def by48(max_num):
p_value = 0
for i in range(0, max_num, 48):
"""
range(start, stop, step)
"""
yield p_value
p_value += 1
# Maximum of 100
for p in by48(100):
print(p)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment