[ create a new paste ] login | about

Link: http://codepad.org/8GJpp9QY    [ raw code | output | fork ]

Python, pasted on Aug 1:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
def writecode (q, a, b, c):
	while b < q:
		b = b + 1
		data_to_write = "v%d_%d_%d = pairwise (caps[%d],sals[%d],poss[%d],poss[%d],poss[%d],pos_range)" %(a,b,c,a,a,a,b,c)
		data_to_write_two = "votes%d_%d.append(v%d_%d_%d)" % (b,c,a,b,c,)
		data_to_write_three = "v%d_%d_%d = pairwise (caps[%d],sals[%d],poss[%d],poss[%d],poss[%d],pos_range)" %(a,c,b,a,a,a,c,b)
		data_to_write_four = "votes%d_%d.append(v%d_%d_%d)" % (c,b,a,c,b)
		return data_to_write
		return data_to_write_two
		return data_to_write_three
		return data_to_write_four
		
x = writecode (5,1,0,4)

out_file = open("code.txt", "a")
out_file.write(x)
out_file.close()


Output:
1
2
3
4
Traceback (most recent call last):
  Line 15, in <module>
    out_file = open("code.txt", "a")
IOError: [Errno 13] Permission denied: 'code.txt'


Create a new paste based on this one


Comments: