Skip to content

Instantly share code, notes, and snippets.

@Shogun89
Created May 31, 2019 05:42
Show Gist options
  • Save Shogun89/e8d7df422d48a0bf4c6eca2c327fd5a5 to your computer and use it in GitHub Desktop.
Save Shogun89/e8d7df422d48a0bf4c6eca2c327fd5a5 to your computer and use it in GitHub Desktop.
N = 50
a1 = 2
for i in range(2,N):
if (i % 2 ) == 0:
a1 = a1+3
print(','.join(map(str, [a1, i])))
else:
a1 *= -1
print(','.join(map(str, [a1, i])))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment