Skip to content

Instantly share code, notes, and snippets.

@shifatul-i
Last active October 3, 2019 19:32
Show Gist options
  • Save shifatul-i/5145255351d05c1e22640b87598ec095 to your computer and use it in GitHub Desktop.
Save shifatul-i/5145255351d05c1e22640b87598ec095 to your computer and use it in GitHub Desktop.
primes = [2, 3, 5, 7]
for prime in primes:
print(prime)
# Prints out the numbers 0,1,2,3,4
for x in range(5):
print(x)
# Prints out 3,4,5
for x in range(3, 6):
print(x)
# Prints out 3,5,7
for x in range(3, 8, 2):
print(x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment