- ...but don't forget to remove the debug output...
This commit is contained in:
parent
02e1ccb186
commit
19d7b42b14
@ -23,12 +23,9 @@ import string
|
|||||||
|
|
||||||
# Retrieve the tuple width
|
# Retrieve the tuple width
|
||||||
tuplesize = int(sys.argv[1])
|
tuplesize = int(sys.argv[1])
|
||||||
print tuplesize
|
|
||||||
|
|
||||||
# Read stdin into list and count
|
# Read stdin into list and count
|
||||||
list = []
|
list = []
|
||||||
|
|
||||||
|
|
||||||
loop = 1
|
loop = 1
|
||||||
while loop:
|
while loop:
|
||||||
line = sys.stdin.readline()
|
line = sys.stdin.readline()
|
||||||
@ -42,9 +39,6 @@ while loop:
|
|||||||
# end of the input
|
# end of the input
|
||||||
loop = 0
|
loop = 0
|
||||||
|
|
||||||
print list
|
|
||||||
print len(list)
|
|
||||||
|
|
||||||
def tupleUnit (x):
|
def tupleUnit (x):
|
||||||
print x + "\t",
|
print x + "\t",
|
||||||
|
|
||||||
@ -62,4 +56,6 @@ def tuplesPrint (l, n, r):
|
|||||||
# Option 2: exclude first
|
# Option 2: exclude first
|
||||||
tuplesPrint (l[1:], n, r)
|
tuplesPrint (l[1:], n, r)
|
||||||
|
|
||||||
|
# Generate tuples...
|
||||||
tuplesPrint (list, tuplesize, [])
|
tuplesPrint (list, tuplesize, [])
|
||||||
|
# Thanks for your attention
|
||||||
|
Loading…
Reference in New Issue
Block a user