start stringlengths 5 368 | code stringlengths 5 143 | end stringlengths 5 527 |
|---|---|---|
a = [3, 7, 12, 14, 21, 21]; i = 2; y = 1 | a.remove(y + i) | a = [7, 12, 14, 21, 21]; i = 2; y = 1 |
t = 4; x = [1, 2, 3] | x.append(t) | t = 4; x = [1, 2, 3, 4] |
f = [5]; t = '2' | f.append(int(t)) | f = [5, 2]; t = '2' |
e = [-20, -3916237, -357920, -3620601, 7374819, -7330761, 30, 6246457, - 6461594, 266854]; i = 4; j = 5 | e[i], e[j] = e[j], e[i] | e = [-20, -3916237, -357920, -3620601, -7330761, 7374819, 30, 6246457, -6461594, 266854]; i = 4; j = 5 |
x = 2 | x = x + 1 | x = 3 |
i = 1 | i += 1 | i = 2 |
j = 'h'; q = {'a': 2, 'b': 2, 'c': 2, 'd': 2, 'e': 2, 'f': 1, 'g': 1} | q[j] = 1 | j = 'h'; q = {'a': 2, 'b': 2, 'c': 2, 'd': 2, 'e': 2, 'f': 1, 'g': 1, 'h': 1} |
e = {'a': 0.0, 'b': 1.0, 'c': 1.0, 'd': 1.0, 'e': 1.0, 'f': 1.0, 'g': 1.0}; i = 6; s = 'abcdefgabcdefg' | e[s[i]] -= 1 | e = {'a': 0.0, 'b': 1.0, 'c': 1.0, 'd': 1.0, 'e': 1.0, 'f': 1.0, 'g': 0.0}; i = 6; s = 'abcdefgabcdefg' |
b = 10; c = 9 | c = b | b = 10; c = 10 |
o = [['e', 'b', 'a', 'c', 'd'], ['f', 'g', 'h', 'i', 'j'], ['o', 'l', 'm', 'k', 'n'], ['t', 'r', 'p', 'q', 's'], [0, 0, 0, 0, 0]]; s = 'xywuv'; z = 4 | o[z] = list(s) | o = [['e', 'b', 'a', 'c', 'd'], ['f', 'g', 'h', 'i', 'j'], ['o', 'l', 'm', 'k', 'n'], ['t', 'r', 'p', 'q', 's'], ['x', 'y', 'w', 'u', 'v']]; s = 'xywuv'; z = 4 |
f = 2; g = [3, 2, 2, 6]; i = 1; w = 1 | w = int(g[i]) - int(f) | f = 2; g = [3, 2, 2, 6]; i = 1; w = 0 |
g = 20; s = 25 | g = s | g = 25; s = 25 |
q = {(1): True}; x = 5 | q[x] = True | q = {1: True, 5: True}; x = 5 |
s = ['}', '}', ']'] | s.pop() | s = ['}', '}'] |
i = 2; r = 13; x = [3, 10, 2, 9] | r = r + x[i] | i = 2; r = 15; x = [3, 10, 2, 9] |
g = '1 3'; h = 3; s = ['7 2', '1 2', '1 3', '2 4', '2 6', '4 5', '6 7', '1 4', '4 5', '2 7', '4 7', '5 3', '', '', '', ''] | g = s[h] | g = '2 4'; h = 3; s = ['7 2', '1 2', '1 3', '2 4', '2 6', '4 5', '6 7', '1 4', '4 5', '2 7', '4 7', '5 3', '', '', '', ''] |
c = [2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0]; i = 11; s = [1.0, 0.0, 0.0, 0.0, 1.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] | s[i] = c[i] / 2 | c = [2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0]; i = 11; s = [1.0, 0.0, 0.0, 0.0, 1.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] |
p = ['1', '2', '3', '4', '5'] | p = [int(i) for i in p] | p = [1, 2, 3, 4, 5] |
u = [[1, 2]]; v = [2, 3] | u.append(v) | u = [[1, 2], [2, 3]]; v = [2, 3] |
c = 3; g = 2 | g += c * (c - 1) | c = 3; g = 8 |
h = 1; s = 1 | h += s | h = 2; s = 1 |
b = 49; i = 1; l = [1, 5, 10, 12, 111, 200, 1000] | b -= l[i] | b = 44; i = 1; l = [1, 5, 10, 12, 111, 200, 1000] |
n = '^[a-z]*[Aa' | n += ']' | n = '^[a-z]*[Aa]' |
a = 1; c = 0; i = 1; v = 0 | a, c = divmod(v + i, 5) | a = 0; c = 1; i = 1; v = 0 |
f = 3.9999999994179234; u = 2.9103830456733704e-10 | f += u % 2 | f = 3.9999999997089617; u = 2.9103830456733704e-10 |
i = 1; o = ['b', 'b'] | i = len(o) - 1 | i = 1; o = ['b', 'b'] |
n = 1e-15; s = 1.11111111111111 | s += n % 10 | n = 1e-15; s = 1.1111111111111112 |
q = 43; r = 36; z = 11 | q = z ^ r | q = 47; r = 36; z = 11 |
i = 7; w = ['went', 'to', 'the']; x = ['I', 'came', 'from', 'the', 'moon.', 'He', 'went', 'She', 'went', 'to', 'the', 'drawing', 'room.'] | w.append(x[i].lower()) | i = 7; w = ['went', 'to', 'the', 'she']; x = ['I', 'came', 'from', 'the', 'moon.', 'He', 'went', 'She', 'went', 'to', 'the', 'drawing', 'room.'] |
n = 3; r = [5, 5, 9] | r = [0] * n | n = 3; r = [0, 0, 0] |
i = 1; j = 2; x = '1'; y = [['1', '1', '1', '0', '0', '0'], ['0', '1', '0', '0', '0', '0'], ['1', '1', '1', '0', '0', '0'], ['0', '0', '2', '4', '4', '0'], ['0', '0', '0', '2', '0', '0'], ['0', '0', '1', '2', '4', '0']] | x = y[i][j] | i = 1; j = 2; x = '0'; y = [['1', '1', '1', '0', '0', '0'], ['0', '1', '0', '0', '0', '0'], ['1', '1', '1', '0', '0', '0'], ['0', '0', '2', '4', '4', '0'], ['0', '0', '0', '2', '0', '0'], ['0', '0', '1', '2', '4', '0']] |
d = 98; s = 1; x = 100 | d += x - s | d = 197; s = 1; x = 100 |
c = 'c'; i = {'a': 2, 'b': 2} | i[c] = 1 | c = 'c'; i = {'a': 2, 'b': 2, 'c': 1} |
d = {'1': 2, '0': 0}; i = '1' | d[i] = d[i] + 1 | d = {'1': 3, '0': 0}; i = '1' |
c = 'abba' | o = len(c) | c = 'abba'; o = 4 |
e = 300; k = 3; t = [200, 300, 1000]; u = 1500 | e = u - t[0] - (k - 1) * t[0] | e = 900; k = 3; t = [200, 300, 1000]; u = 1500 |
i = 22; l = [4, 16, 36, 64, 100, 144, 196, 256, 324, 400] | l.append(i * i) | i = 22; l = [4, 16, 36, 64, 100, 144, 196, 256, 324, 400, 484] |
a = [1, 2, 3, 3]; i = 1; m = 1 | m += a[i] | a = [1, 2, 3, 3]; i = 1; m = 3 |
g = ['A']; w = 'B' | g.append(w) | g = ['A', 'B']; w = 'B' |
m = ['1', 'xy'] | m[0] = int(m[0]) | m = [1, 'xy'] |
k = '2 3 4 '; l = 30 | k += str(l) + ' ' | k = '2 3 4 30 '; l = 30 |
i = 7; p = 12 | p = p % i | i = 7; p = 5 |
c = 'i'; g = ' ' | g = c.lower() | c = 'i'; g = 'i' |
o = ['95', '92', '95']; t = 7633 | t += int(o[0]) ** 2 | o = ['95', '92', '95']; t = 16658 |
i = '4 0\n'; y = [2, 2] | y.append(int(i.rsplit()[1])) | i = '4 0\n'; y = [2, 2, 0] |
p = 'c' | o = ''.join(sorted(p)) | o = 'c'; p = 'c' |
w = 6 | p = [1] * w | p = [1, 1, 1, 1, 1, 1]; w = 6 |
s = '00000000000000000000000000000' | s += '0' | s = '000000000000000000000000000000' |
h = [1, 1, 1, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; w = 'c' | h[ord(w) - ord('a')] += 1 | h = [1, 1, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; w = 'c' |
i = 2; j = 4; s = 'abba'; t = ['b'] | t = list(s[i:j]) | i = 2; j = 4; s = 'abba'; t = ['b', 'a'] |
b = [[4, 3, 2, 1, 3, 4], [1, 3, 2]]; e = 2; i = 1; x = 2147483648 | x = b[i][e] | b = [[4, 3, 2, 1, 3, 4], [1, 3, 2]]; e = 2; i = 1; x = 2 |
g = 3; l = [15, 10, 12, 11]; z = 6 | l.append((z & g ^ (z | g)) & (z ^ g)) | g = 3; l = [15, 10, 12, 11, 5]; z = 6 |
h = '1'; m = 11 | m += int(h) | h = '1'; m = 12 |
b = [11, 10, 5, 8]; f = 11 | b.remove(f) | b = [10, 5, 8]; f = 11 |
o = '11010000001001110001101101001100' | o = str() | o = '' |
a = 'c'; d = {'c': 2, 'd': 2} | d[a] += 1 | a = 'c'; d = {'c': 3, 'd': 2} |
f = 2; z = [1, 3] | f = max(z[0], z[-1]) | f = 3; z = [1, 3] |
q = 2; x = 3 | q = x | q = 3; x = 3 |
k = [7, 4, 9, 6] | k.sort() | k = [4, 6, 7, 9] |
j = 0; l = [7, 4, 3, 5, 6, 2] | l[j + 1] = l[j] | j = 0; l = [7, 7, 3, 5, 6, 2] |
g = 0; r = 1; z = 1 | r = g + z >> 1 | g = 0; r = 0; z = 1 |
i = 2; j = 7; m = 'a', 'i', 'l', 'u'; s = 'ifailuhkqq' | m = tuple(sorted(list(s[i:j]))) | i = 2; j = 7; m = ('a', 'h', 'i', 'l', 'u'); s = 'ifailuhkqq' |
g = 5; k = 3 | g = g + k | g = 8; k = 3 |
g = 4; n = 4; w = 4 | a = min(n - g, n - w) | a = 0; g = 4; n = 4; w = 4 |
f = 189; i = 5, 9, 5; s = 1000 | f = sum([(x ** 2) for x in i]) % s | f = 131; i = (5, 9, 5); s = 1000 |
o = 0.0018 | o = o / 10 | o = 0.00017999999999999998 |
a = [2, 1, 3]; j = 0 | a[j] = a[j + 1] | a = [1, 1, 3]; j = 0 |
d = 357400; e = -357920, -520; k = {(869167): [(-7330761, -6461594)], (2545357): [(-6461594, -3916237)], ( 295636): [(-3916237, -3620601)], (3262681): [(-3620601, -357920)]} | k[d] = [e] | d = 357400; e = (-357920, -520); k = {869167: [(-7330761, -6461594)], 2545357: [(-6461594, -3916237)], 295636: [(-3916237, -3620601)], 3262681: [(-3620601, -357920)], 357400: [(-357920, -520)]} |
j = 2; y = [True, True, False, False, False, False] | y[j] = True | j = 2; y = [True, True, True, False, False, False] |
c = 64; i = 10; q = 18014398509481984 | q = 1 << c - i - 1 | c = 64; i = 10; q = 9007199254740992 |
k = '1'; o = 64; y = 63 | y += o * int(k) | k = '1'; o = 64; y = 127 |
b = True; c = '9'; w = 'YES 1' | w = 'YES ' + c if b else 'NO' | b = True; c = '9'; w = 'YES 9' |
b = 3.1086244689504383e-15 | b /= 2 | b = 1.5543122344752192e-15 |
x = [0, 0] | x.append(0) | x = [0, 0, 0] |
b = 2; l = [10, 20, 30, 100, 200, 300, 1000]; m = [20, 80]; r = 3 | m.append(l[b + r - 1] - l[b]) | b = 2; l = [10, 20, 30, 100, 200, 300, 1000]; m = [20, 80, 170]; r = 3 |
b = [-96, -92, -59, -54, -53, -36, -13, -2, 1, 75]; i = 0 | l = b[i + 1] - b[i] | b = [-96, -92, -59, -54, -53, -36, -13, -2, 1, 75]; i = 0; l = 4 |
b = 1; e = 9; w = [{(1): 3, (4): 1, (10): 1}, {(9): 1, (5): 1, (7): 2, (3): 1}] | w[b][e] = w[b].get(e, 0) + 1 | b = 1; e = 9; w = [{1: 3, 4: 1, 10: 1}, {9: 2, 5: 1, 7: 2, 3: 1}] |
j = 3 | j = j - 1 | j = 2 |
d = [1, 2, 1, 0, 1, 0, 1, 0]; m = 3 | d[m] = 1 | d = [1, 2, 1, 1, 1, 0, 1, 0]; m = 3 |
f = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; i = 5; j = 3; v = [6, 11, 25, 6, 0, 0, 0, 0, 0, 0] | v[j] += f[i] - f[j] | f = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; i = 5; j = 3; v = [6, 11, 25, 22, 0, 0, 0, 0, 0, 0] |
b = 1; k = 1; m = 2 | m = (k + b) // 2 | b = 1; k = 1; m = 1 |
p = [['1', '1', '1', '0', '0', '0'], ['0', '1', '0', '0', '0', '0'], ['1', '1', '1', '0', '0', '0'], ['0', '0', '2', '4', '4', '0'], ['0', '0', '0', '2', '0', '0']]; w = ['0', '0', '1', '2', '4', '0'] | p.append(w) | p = [['1', '1', '1', '0', '0', '0'], ['0', '1', '0', '0', '0', '0'], ['1', '1', '1', '0', '0', '0'], ['0', '0', '2', '4', '4', '0'], ['0', '0', '0', '2', '0', '0'], ['0', '0', '1', '2', '4', '0']]; w = ['0', '0', '1', '2', '4', '0'] |
g = 5; o = [4, [1, 2, 3, 4]] | g = o[0] | g = 4; o = [4, [1, 2, 3, 4]] |
i = '['; p = ['{'] | p.append(i) | i = '['; p = ['{', '['] |
g = 2097152; j = 2097152 | g = j * 2 | g = 4194304; j = 2097152 |
n = '1111111111111111111111' | n += '1' | n = '11111111111111111111111' |
i = [33, 59, 79]; p = [73.0, 48.0, 95.0, 95.0] | p.append(float(i[0])) | i = [33, 59, 79]; p = [73.0, 48.0, 95.0, 95.0, 33.0] |
l = [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, 0]; x = [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] | x, l = [0] * 26, [0] * 26 | l = [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]; x = [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] |
r = ['7', '6 5 8 4 7 10 9', '', '', '', ''] | y = r[1].split(' ') | r = ['7', '6 5 8 4 7 10 9', '', '', '', '']; y = ['6', '5', '8', '4', '7', '10', '9'] |
k = 'f'; x = 'babfab' | x = x.replace(k, '') | k = 'f'; x = 'babab' |
m = [2]; x = '1' | m.append(int(x)) | m = [2, 1]; x = '1' |
b = [1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 2, 2]; d = 1 | b.append(d) | b = [1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 2, 2, 1]; d = 1 |
a = [1, 5]; d = [3, 5, 9]; i = 1; j = 2; q = 100003; r = 25 | r -= a[i - j] * d[j] % q | a = [1, 5]; d = [3, 5, 9]; i = 1; j = 2; q = 100003; r = -20 |
i = 2; j = [0, 1, 1, 1, 999]; t = 1 | t += j[i] | i = 2; j = [0, 1, 1, 1, 999]; t = 2 |
a = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 52, 24}; x = {1, 2, 3, 4, 5, 6, 7, 8, 9, 11} | a &= x | a = {1, 2, 3, 4, 5, 6, 7, 8, 9, 11}; x = {1, 2, 3, 4, 5, 6, 7, 8, 9, 11} |
h = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100]; k = 1 | h.remove(k) | h = [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100]; k = 1 |
j = 'b',; l = ['dummy', [('a',), ('b',)], [('a', 'b'), ('b', 'b')], [('a', 'b', 'b'), ('a', 'b', 'b')], [('a', 'a', 'b', 'b')]]; m = [('a', 'b', 'b'), ('a', 'b', 'b')] | m = l[len(j)] | j = ('b',); l = ['dummy', [('a',), ('b',)], [('a', 'b'), ('b', 'b')], [('a', 'b', 'b'), ('a', 'b', 'b')], [('a', 'a', 'b', 'b')]]; m = [('a',), ('b',)] |
b = 93909153; m = 1000000007 | b = b * b % m | b = 955444913; m = 1000000007 |
d = ['1', '2', '4', '8', '16', '32', '4194304', '8388608', '16777216', '33554432', '67108864', '134217728']; p = 268435456 | d.append(str(p)) | d = ['1', '2', '4', '8', '16', '32', '4194304', '8388608', '16777216', '33554432', '67108864', '134217728', '268435456']; p = 268435456 |
a = '6'; x = 0 | x = int(a) | a = '6'; x = 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.