start
stringlengths 5
368
| code
stringlengths 5
143
| end
stringlengths 5
527
|
---|---|---|
i = 2; j = 4; s = 'cdcd'; x = [['c'], ['c', 'd'], ['c', 'c', 'd'], ['c', 'c', 'd', 'd'], ['d'], ['c', 'd'], ['c', 'd', 'd'], ['c']] | x.append(sorted(list(s[i:j]))) | i = 2; j = 4; s = 'cdcd'; x = [['c'], ['c', 'd'], ['c', 'c', 'd'], ['c', 'c', 'd', 'd'], ['d'], ['c', 'd'], ['c', 'd', 'd'], ['c'], ['c', 'd']] |
n = {(0): '1 4 ', (1): '1 9 ', (2): '3 ', (3): '2 4 ', (4): '3 '} | q = [(value, key) for key, value in list(n.items())] | n = {0: '1 4 ', 1: '1 9 ', 2: '3 ', 3: '2 4 ', 4: '3 '}; q = [('1 4 ', 0), ('1 9 ', 1), ('3 ', 2), ('2 4 ', 3), ('3 ', 4)] |
o = 20 | o = o + 1 | o = 21 |
i = 1 | s.append(str(i)) | i = 1; s = ['1'] |
h = ['f']; j = 2; s = 'ifailuhkqq'; u = 1 | h = sorted(s[j:j + u]) | h = ['a']; j = 2; s = 'ifailuhkqq'; u = 1 |
m = 7 | m += 1 | m = 8 |
t = ['2', '2', '2', '2']; z = [['2'], ['2', '2'], ['2', '2', '2'], ['2', '2', '2', '2'], ['2', '2', '2', '2', '2'], ['2'], ['2', '2'], ['2', '2', '2']] | z.append(t) | t = ['2', '2', '2', '2']; z = [['2'], ['2', '2'], ['2', '2', '2'], ['2', '2', '2', '2'], ['2', '2', '2', '2', '2'], ['2'], ['2', '2'], ['2', '2', '2'], ['2', '2', '2', '2']] |
e = 3; l = -33; o = 3; q = 100 | l = q - o ** e | e = 3; l = 73; o = 3; q = 100 |
h = 4; k = [1, 2] | k = k + [h] | h = 4; k = [1, 2, 4] |
j = '33' | j += '3' | j = '333' |
a = ['z', '{', '{']; i = 2; s = '{{[[(())]]}}' | a.append(s[i]) | a = ['z', '{', '{', '[']; i = 2; s = '{{[[(())]]}}' |
c = 4; d = 3; v = '910'; x = '99910001001' | v = x[d:d + c] | c = 4; d = 3; v = '1000'; x = '99910001001' |
b = ['c', 'd', 'k']; h = 'hc'; i = 1 | h += b[i] | b = ['c', 'd', 'k']; h = 'hcd'; i = 1 |
e = ['{']; f = '{' | f = e.pop() | e = []; f = '{' |
x = 79.5 | g = x / 3 | g = 26.5; x = 79.5 |
b = [4, 0]; v = 4 | b.append(v) | b = [4, 0, 4]; v = 4 |
s = ['1', '97'] | d = int(s[1]) | d = 97; s = ['1', '97'] |
i = 0; j = [3, 7, 8, 9] | j[i] = j[i] ** 2 | i = 0; j = [9, 7, 8, 9] |
a = [3, -7, 0] | a = sorted(a, reverse=True) | a = [3, 0, -7] |
i = 7; p = ''; s = '999100010001' | p = s[i + 1:] | i = 7; p = '0001'; s = '999100010001' |
i = 'e'; q = 'e' | q += i | i = 'e'; q = 'ee' |
a = ['insert', '1', '10']; b = [5] | b.insert(int(a[1]), int(a[2])) | a = ['insert', '1', '10']; b = [5, 10] |
q = [2, 4, 5] | m = max(q) | m = 5; q = [2, 4, 5] |
n = 1.200000000000001e-94 | n = n / 10 | n = 1.200000000000001e-95 |
g = 1.2000000000000002e-13 | g = g / 10 | g = 1.2000000000000003e-14 |
c = 1; v = 0 | v, c = c, v + c | c = 1; v = 1 |
h = 'a'; i = 0; p = 2; s = 'abba' | h = s[i:i + p] | h = 'ab'; i = 0; p = 2; s = 'abba' |
a = [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1], [1, 4, 6, 4, 1]]; d = 4; j = 5; r = [1, 5, 10, 10] | r.append(a[j - 1][d] + a[j - 1][d - 1]) | a = [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1], [1, 4, 6, 4, 1]]; d = 4; j = 5; r = [1, 5, 10, 10, 5] |
i = {'7', '4', '1', '5', '6', '8', '9', '3', '2', '11'}; s = {'55', '66'} | i.update(s) | i = {'6', '11', '7', '3', '66', '55', '8', '2', '9', '5', '1', '4'}; s = {'66', '55'} |
m = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] | m.append(1) | m = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] |
a = 19; r = [0, 7, 6, 5, 4, 27, 26, 25, 24, 31, 30, 29, 28] | r += [a] | a = 19; r = [0, 7, 6, 5, 4, 27, 26, 25, 24, 31, 30, 29, 28, 19] |
v = 20 | v = v + 1 | v = 21 |
s = [3, 4, 21, 36, 10, 28, 35, 5, 24, 42] | g = s[0] | g = 3; s = [3, 4, 21, 36, 10, 28, 35, 5, 24, 42] |
i = 23 | i += 1 | i = 24 |
i = 2; n = [1, 5, 10, 12, 111, 200, 1000]; p = 6 | p += n[i] | i = 2; n = [1, 5, 10, 12, 111, 200, 1000]; p = 16 |
i = 1; n = 2; r = [5, 3, 2] | n = max(n, r[i]) | i = 1; n = 3; r = [5, 3, 2] |
n = 'ab'; s = {'a': 1, 'ab': 1, 'abb': 2, 'aabb': 1, 'b': 2, 'bb': 1} | s[n] = s.get(n, 0) + 1 | n = 'ab'; s = {'a': 1, 'ab': 2, 'abb': 2, 'aabb': 1, 'b': 2, 'bb': 1} |
s = 6 | e = s * pissyflorist + e | e = 20.718281828459045; s = 6; y = 3 |
a = 2; b = 2 | a *= b ** (b - 1) | a = 4; b = 2 |
n = 3; w = [1] | n = len(w) | n = 1; w = [1] |
i = 1; r = 4 | v.append((i, r)) | i = 1; r = 4; v = [(1, 4)] |
c = 8; i = 2; k = 4; u = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200] | c = u[i + k - 1] - u[i] | c = 17; i = 2; k = 4; u = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200] |
a = [2, 1, 1, 1]; b = [1, 0, 0, 1]; h = 1000000007; p = [2, 0, 0, 0] | p[1] = (a[0] * b[1] + a[1] * b[3]) % h | a = [2, 1, 1, 1]; b = [1, 0, 0, 1]; h = 1000000007; p = [2, 1, 0, 0] |
t = 5 | t += 1 | t = 6 |
j = 1; t = 3 | t = j | j = 1; t = 1 |
e = [[0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0]]; i = 1; j = 1 | e[i + 1][j + 1] = e[i][j] + 1 | e = [[0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0]]; i = 1; j = 1 |
b = '101' | b += '1' | b = '1011' |
w = [1, 1, 1] | w.append(1) | w = [1, 1, 1, 1] |
c = [True, True, True, False, False]; l = 3 | c[l] = True | c = [True, True, True, True, False]; l = 3 |
b = [1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4]; i = 'd' | b.append(ord(i) - 96) | b = [1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4]; i = 'd' |
k = 3.3320000000000003; q = 0.0012000000000000001 | k = k + q % 10 | k = 3.3332; q = 0.0012000000000000001 |
i = 0; t = 1, 1; w = 'ab' | f = w[:i] + w[t[0]] + ''.join(sorted(w[i:t[0]] + w[t[0] + 1:])) | f = 'ba'; i = 0; t = (1, 1); w = 'ab' |
e = [1, 1, 0]; f = 16; g = [1, 3, 5, 7, 9]; i = 2; s = 3 | f = f + (1 + e[i % s]) * g[-i - 1] | e = [1, 1, 0]; f = 21; g = [1, 3, 5, 7, 9]; i = 2; s = 3 |
i = 2; j = 2; v = [[1, 1, 1, 1], [0, 0, 0, 0], [1, 1, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]; x = 0; y = 1 | v[i][j] = x + y | i = 2; j = 2; v = [[1, 1, 1, 1], [0, 0, 0, 0], [1, 1, 1, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]; x = 0; y = 1 |
k = '1126293'; m = [1226800, 926891, 782725, 1023038] | m.append(int(k)) | k = '1126293'; m = [1226800, 926891, 782725, 1023038, 1126293] |
m = [2, 1, 0]; x = 2; y = 1; z = 1 | m = [x, y, z] | m = [2, 1, 1]; x = 2; y = 1; z = 1 |
r = 'got'; u = {'ive': 0, 'got': 1, 'a': 1, 'lovely': 1, 'bunch': 1, 'of': 1, 'coconuts': 1} | u[r] -= 1 | r = 'got'; u = {'ive': 0, 'got': 0, 'a': 1, 'lovely': 1, 'bunch': 1, 'of': 1, 'coconuts': 1} |
l = ['do', 'we', 'can', 'must', 'what', 'because']; p = ['do', 'we', 'can', 'must', 'what', 'because'] | a = [set(l) for l in p] | a = [{'d', 'o'}, {'w', 'e'}, {'a', 'c', 'n'}, {'s', 't', 'u', 'm'}, {'a', 'w', 't', 'h'}, {'c', 'u', 's', 'b', 'a', 'e'}]; l = ['do', 'we', 'can', 'must', 'what', 'because']; p = ['do', 'we', 'can', 'must', 'what', 'because'] |
i = 5; l = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97]; w = 30030 | w *= l[i] | i = 5; l = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97]; w = 390390 |
c = 'a'; z = {'b', 'c', 'a', 'd'} | z.add(c) | c = 'a'; z = {'a', 'b', 'c', 'd'} |
r = 'In the third category he included those Brothers (the '; x = 'majority)' | r += x + ' ' | r = 'In the third category he included those Brothers (the majority) '; x = 'majority)' |
i = 2; k = 2; l = {(-1): 1, (3): 2, (7): 1, (1): 1, (5): 1, (2): 1, (6): 1} | l[i - k] = 1 | i = 2; k = 2; l = {-1: 1, 3: 2, 7: 1, 1: 1, 5: 1, 2: 1, 6: 1, 0: 1} |
b = [1, 3, 5, 7]; y = [1, 3, 5] | b = sorted(y) | b = [1, 3, 5]; y = [1, 3, 5] |
p = 4 | p += 1 | p = 5 |
b = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; c = 'b' | b[ord(c) - ord('a')] += 1 | b = [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; c = 'b' |
n = ( 'In the third category he included those Brothers..., breathless from his gallop and his excitement. ' ) | c = n | c = 'In the third category he included those Brothers..., breathless from his gallop and his excitement. '; n = 'In the third category he included those Brothers..., breathless from his gallop and his excitement. ' |
b = 'world'; j = 5 | j = len(b) | b = 'world'; j = 5 |
c = 4; r = [2] | r.append(c) | c = 4; r = [2, 4] |
x = True | p.append(x) | p = [True]; x = True |
a = 8; m = 9; u = 4 | u = abs(a - m) | a = 8; m = 9; u = 1 |
a = 0; i = 11; j = 12 | a = i ^ j | a = 7; i = 11; j = 12 |
d = {(1): 3}; k = 2; x = 5 | d[x] = x + k | d = {1: 3, 5: 7}; k = 2; x = 5 |
a = [1]; j = 1; q = ['1', '6', '9'] | a.append(int(q[j])) | a = [1, 6]; j = 1; q = ['1', '6', '9'] |
f = '\n'; t = ['3', '4', '100'] | t = f.strip().split() | f = '\n'; t = [] |
a = 11; b = 20; r = 27 | r = a ^ b | a = 11; b = 20; r = 31 |
a = 1; b = 1; k = {(1, 2), (2, 3)} | k.add((a, b)) | a = 1; b = 1; k = {(1, 2), (2, 3), (1, 1)} |
r = 1.3877787807814457e-17; v = 2 | r /= v | r = 6.938893903907228e-18; v = 2 |
n = 4 | a = [0] * n | a = [0, 0, 0, 0]; n = 4 |
k = [3, 3]; s = 2 | k.append(s) | k = [3, 3, 2]; s = 2 |
m = [1, 2] | s.append(m) | m = [1, 2]; s = [[1, 2]] |
i = 2; k = 68 | k += i | i = 2; k = 70 |
p = 'hae' | p += ' ' | p = 'hae ' |
p = 3; x = 14; y = 14 | p = x ^ y | p = 0; x = 14; y = 14 |
b = ['2', '5', '100']; y = 200 | y += (int(b[1]) - int(b[0]) + 1) * int(b[2]) | b = ['2', '5', '100']; y = 600 |
j = 4; l = 7; m = '0b10001' | s = m[2:j] + '0' * (l - j) | j = 4; l = 7; m = '0b10001'; s = '10000' |
i = 0; j = 1; v = [['T']]; x = 'Tsi' | v[i].append(x[j]) | i = 0; j = 1; v = [['T', 's']]; x = 'Tsi' |
a = 4; q = [2, 1, 4]; u = 1; x = 7 | u, a, x = q | a = 1; q = [2, 1, 4]; u = 2; x = 4 |
a = {'c', 'd', 'b', 'a'}; z = {'g', 'e', 'b', 'a'} | a = a & z | a = {'a', 'b'}; z = {'a', 'g', 'b', 'e'} |
d = 0; g = [[2, 2, 11], [1, 1, 15]]; j = 0; u = 21 | g.append([d, j, u]) | d = 0; g = [[2, 2, 11], [1, 1, 15], [0, 0, 21]]; j = 0; u = 21 |
a = [[0, '-'], [6, '-'], [0, 'ef']]; i = 2 | a[i][1] = '-' | a = [[0, '-'], [6, '-'], [0, '-']]; i = 2 |
c = '['; x = ['{', '{'] | x.append(c) | c = '['; x = ['{', '{', '['] |
b = 393751; h = 4; i = 3; t = 'ifailuhkqq' | b += (h + 1) ** (ord(t[i]) - ord('a')) | b = 784376; h = 4; i = 3; t = 'ifailuhkqq' |
i = '\n'; j = '\n'; n = [(1, 3)] | n.append((i, j)) | i = '\n'; j = '\n'; n = [(1, 3), ('\n', '\n')] |
c = '7'; x = ['discard', '6'] | c = x[1] | c = '6'; x = ['discard', '6'] |
b = [0, 2, 1]; m = [5, 5, 9] | m.append(sum(b)) | b = [0, 2, 1]; m = [5, 5, 9, 3] |
f = 8; p = 5 | p = f | f = 8; p = 8 |
n = 1 | n = str(2 ** 32 - n - 1) | n = '4294967294' |
i = 11; j = 11 | a = i ^ j | a = 0; i = 11; j = 11 |
n = 12 | h = str(n) | h = '12'; n = 12 |
e = [70.0, 70.0, 78.0]; j = 2; k = [838.0, 869.0, 870.0] | k[j] += e[j] | e = [70.0, 70.0, 78.0]; j = 2; k = [838.0, 869.0, 948.0] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.