Created
July 16, 2011 07:15
-
-
Save basarat/1086093 to your computer and use it in GitHub Desktop.
A sample of combinations in python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
seq = [1,2,3] | |
n=len(seq) | |
for i in range(n): | |
for j in range(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