Skip to content

Instantly share code, notes, and snippets.

@basarat
Created July 16, 2011 07:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save basarat/1086105 to your computer and use it in GitHub Desktop.
Save basarat/1086105 to your computer and use it in GitHub Desktop.
seq = [1,2,3]
n=len(seq)
for i in range(n):
for j in range(i+1,n):
print "%s * %s = %s"%(seq[i],seq[j],seq[i]*seq[j])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment