Skip to content

Instantly share code, notes, and snippets.

@objectsyndicate
Created December 11, 2011 08:05
Show Gist options
  • Save objectsyndicate/1459260 to your computer and use it in GitHub Desktop.
Save objectsyndicate/1459260 to your computer and use it in GitHub Desktop.
Thoughts on Java and Python 1
count = 1
multiplier = 2
while count:
if count <= 20:
print "Powers of 2^%s = %s" % (count, multiplier**count)
count = count + 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment