Skip to content

Instantly share code, notes, and snippets.

@detomastah
Created February 25, 2013 16:05
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save detomastah/5030848 to your computer and use it in GitHub Desktop.
import sys
arr = [a for a in range(1,129)]
arr2 = [a for a in range(1001,1129)]
for a in xrange(0, int(sys.argv[1])):
for b in xrange(0,128):
if arr[b] % 2 == 0:
arr[b] += arr2[b]
else:
arr2[b] *= arr[b]
print arr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment