start
stringlengths 5
368
| code
stringlengths 5
143
| end
stringlengths 5
527
|
---|---|---|
w = 0.0006103515625 | w /= 2 | w = 0.00030517578125 |
a = 'hello' | q = set(list(a)) | a = 'hello'; q = {'e', 'h', 'l', 'o'} |
b = 0; t = [[5, 3], [7]]; u = 7; w = 1 | u = t[b][w] | b = 0; t = [[5, 3], [7]]; u = 3; w = 1 |
n = '1012'; o = 12 | o = int(n) | n = '1012'; o = 1012 |
f = 2; i = 0; k = 2; p = [1, 1, 1, 2, 2] | f = p[i + k - 1] - p[i] | f = 0; i = 0; k = 2; p = [1, 1, 1, 2, 2] |
d = []; v = '{' | d.append(v) | d = ['{']; v = '{' |
i = 1; j = 1; k = 2 | i, j, k = 0, 0, 0 | i = 0; j = 0; k = 0 |
i = 7; s = 'abcdefgabcdefg' | o.append(s[i]) | i = 7; o = ['a']; s = 'abcdefgabcdefg' |
x = ['10', '5'] | m = int(x[1]) | m = 5; x = ['10', '5'] |
j = 0; s = 0 | s += 2 ** j | j = 0; s = 1 |
a = [0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0]; e = 'cdefghmnopqrstuvw'; i = 13 | a[ord(e[i]) - ord('a')] += 1 | a = [0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0]; e = 'cdefghmnopqrstuvw'; i = 13 |
h = ['i love to', 'dance i like', 'to dance i', 'like to play', 'dance i like', 'to play chess', 'to dance i']; m = ['like', 'to', 'dance'] | h.append(' '.join(m)) | h = ['i love to', 'dance i like', 'to dance i', 'like to play', 'dance i like', 'to play chess', 'to dance i', 'like to dance']; m = ['like', 'to', 'dance'] |
y = 0 | y += 1 | y = 1 |
d = {1, 3}; s = {1, 3} | d = d - s | d = set(); s = {1, 3} |
j = 1; u = 1; z = 10 | j = z - u | j = 9; u = 1; z = 10 |
g = 4; h = 5, 3; s = 6 | g, s = h | g = 5; h = (5, 3); s = 3 |
a = 0.0048828125; l = 3.990234375 | l += a % 2 | a = 0.0048828125; l = 3.9951171875 |
g = [1, 0, 1]; j = 2; v = [0, 1, 0] | v[j - 1] += g[j] | g = [1, 0, 1]; j = 2; v = [0, 2, 0] |
i = 1; x = [2] | x.append(i) | i = 1; x = [2, 1] |
l = '['; z = ['{'] | z.append(l) | l = '['; z = ['{', '['] |
i = 2; s = '$a '; x = [['T', 'h', 'i', 's', '$'], ['s', '%', ' ', 'M', 'a'], ['i', 'x', '#', ' '] ] | x[i] += s[i] | i = 2; s = '$a '; x = [['T', 'h', 'i', 's', '$'], ['s', '%', ' ', 'M', 'a'], ['i', 'x', '#', ' ', ' ']] |
j = {(140410254513328): [], (140410254513808): ['T', 'T']}; x = ['T', 'T'] | j[id(j)] = [x] | j = {140410254513328: [], 140410254513808: ['T', 'T'], 139760050708960: [['T', 'T']]}; x = ['T', 'T'] |
a = 2; f = [1, 3, 4, 4]; k = 1 | f[k + 1] = a | a = 2; f = [1, 3, 2, 4]; k = 1 |
b = 1; c = 1; l = 2 | b, c = divmod(l, 2) | b = 1; c = 0; l = 2 |
e = [2, 2, 2]; i = 3 | e.append(i) | e = [2, 2, 2, 3]; i = 3 |
t = [['-', '-'], [], [], [], [], [], ['-'], [], [], [], [], [], [], [], [], [], [], [], [], [], []]; z = 6 | t[z].append('-') | t = [['-', '-'], [], [], [], [], [], ['-', '-'], [], [], [], [], [], [], [], [], [], [], [], [], [], []]; z = 6 |
m = [1, 1, 1, 2, 2] | f = [0] * len(m) | f = [0, 0, 0, 0, 0]; m = [1, 1, 1, 2, 2] |
g = 1; q = 1000000007; y = 22 | g = (g + y) % q | g = 23; q = 1000000007; y = 22 |
i = 1; j = 1; k = 2 | i = j = k = 0 | i = 0; j = 0; k = 0 |
i = 'a' | s = i | i = 'a'; s = 'a' |
h = '11111111' | h += '1' | h = '111111111' |
n = [1, 2, 3] | n.sort(reverse=True) | n = [3, 2, 1] |
i = 0; o = [3]; v = [-4, -3, -2, -1, 0, 1, 2] | o.append(v[i]) | i = 0; o = [3, -4]; v = [-4, -3, -2, -1, 0, 1, 2] |
d = 1000000007; g = 30; k = 1; v = 2 | g += k * (v + 1) % d | d = 1000000007; g = 33; k = 1; v = 2 |
f = [0, 1, 2, 1, 1, 1]; i = 5; p = 1 | f[i] = f[i] - p | f = [0, 1, 2, 1, 1, 0]; i = 5; p = 1 |
l = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34] | l.append(l[-1] + l[-2]) | l = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55] |
b = 3; d = 9; v = 1 | b = v - d | b = -8; d = 9; v = 1 |
n = 0; t = 1, 1 | n = t[0] | n = 1; t = (1, 1) |
h = 2034; s = 159; z = 2788 | z = h + s | h = 2034; s = 159; z = 2193 |
j = 12; w = [4, 6, 8, 10] | w.append(j) | j = 12; w = [4, 6, 8, 10, 12] |
a = 1729; p = 1415; v = 2520 | p = v - a | a = 1729; p = 791; v = 2520 |
e = 1001; i = 5; s = [0, 0, 1, 2, 3, 1000] | s[i] = e | e = 1001; i = 5; s = [0, 0, 1, 2, 3, 1001] |
v = [0, 0, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; x = 101 | v[x - 97] += 1 | v = [0, 0, 4, 4, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; x = 101 |
b = 10792819; m = 1000000007; r = 735851262 | r = r * b % m | b = 10792819; m = 1000000007; r = 426094215 |
k = 1; x = 5 | x = k | k = 1; x = 1 |
v = 'insert 0 6' | v = v.split() | v = ['insert', '0', '6'] |
j = """1 3 1 3 1 4 1 3 2 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5\nabc\n\n\n\n"""; l = 3; y = 3 | j = l * y | j = 9; l = 3; y = 3 |
a = [1, 1, 1, 2]; k = [1, 1, 1, 2] | k = [(val - a[0]) for val in a if val - a[0] > 0] | a = []; k = [] |
g = [0, 1, 3, 0, 4, 1]; x = 6 | g.append(g[-1] ^ x) | g = [0, 1, 3, 0, 4, 1, 7]; x = 6 |
j = 3; w = [6, 6, 2] | j = w.pop() | j = 2; w = [6, 6] |
i = 0; j = 1; k = 1 | i = i + j + k + 1 | i = 3; j = 1; k = 1 |
e = ['f', 'e', 'd', 'c', 'b', 'a', 'b', 'c', 'd']; i = -2; q = -1 | e[i] = e[q] | e = ['f', 'e', 'd', 'c', 'b', 'a', 'b', 'd', 'd']; i = -2; q = -1 |
m = '7 1 -2 -3 -4 2 0 -1 ' | m = m.replace(m[0], '') | m = ' 1 -2 -3 -4 2 0 -1 ' |
b = [203, 203, 204, 204, 204, 205, 205, 205, 206, 206, 206, 207, 208]; i = 8; p = [2, 3, 3, 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]; z = 203 | p[b[i] - z] += 1 | b = [203, 203, 204, 204, 204, 205, 205, 205, 206, 206, 206, 207, 208]; i = 8; p = [2, 3, 3, 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, 0, 0, 0, 0]; z = 203 |
f = 9.313225746154785e-09 | f /= 2 | f = 4.6566128730773926e-09 |
i = 4; n = [['a', 'b', 'c', 'd', 'e'], ['f', 'g', 'h', 'i', 'j'], ['k', 'l', 'm', 'n', 'o'], ['p', 'q', 'r', 's', 't'], ['x', 'y', 'w', 'u', 'v']] | n[i].sort() | i = 4; n = [['a', 'b', 'c', 'd', 'e'], ['f', 'g', 'h', 'i', 'j'], ['k', 'l', 'm', 'n', 'o'], ['p', 'q', 'r', 's', 't'], ['u', 'v', 'w', 'x', 'y']] |
a = [2]; x = 1 | a.append(x) | a = [2, 1]; x = 1 |
i = 3; j = 0; v = [(2, 1), (3, 2)] | v.append((i + 1, j + 1)) | i = 3; j = 0; v = [(2, 1), (3, 2), (4, 1)] |
v = 10; z = 9 | z = v | v = 10; z = 10 |
q = {'e', 'f', 'b', 'a'} | m = list(q) | m = ['a', 'e', 'f', 'b']; q = {'a', 'e', 'f', 'b'} |
j = 5; x = 7 | j = x | j = 7; x = 7 |
d = 5; i = 11; j = 3; r = 1 | d, r = divmod(i, j) | d = 3; i = 11; j = 3; r = 2 |
n = 4; s = 21 | n = s | n = 21; s = 21 |
o = 'a'; u = 'nk' | o = u[0] | o = 'n'; u = 'nk' |
l = ['1', '1', '3', '3', '6', '8', '9', '9', '10', '12', '13', '16', '16']; u = ['18'] | l.extend(u) | l = ['1', '1', '3', '3', '6', '8', '9', '9', '10', '12', '13', '16', '16', '18']; u = ['18'] |
o = [1, 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]; v = 1 | o[v] += 1 | o = [1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; v = 1 |
o = [1] | u = o.pop(0) | o = []; u = 1 |
n = 3 | l = max(l, n) | l = 14; n = 3 |
b = 'SOSSPSSQSSOR' | r = len(b) | b = 'SOSSPSSQSSOR'; r = 12 |
y = 'a' | t[y] = t.get(y, 0) + 1 | t = {'a': 1}; y = 'a' |
h = [37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100]; k = 37 | h.remove(k) | h = [38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100]; k = 37 |
b = ['4 2\n', '1 2 3 4.\n', '\n', '\n'] | n, k = [int(x) for x in b[0].split()] | b = ['4 2\n', '1 2 3 4.\n', '\n', '\n']; k = 2; n = 4 |
c = 4; v = [8] | c = v.pop() | c = 8; v = [] |
f = [0, 1]; k = 2 | f.append(k) | f = [0, 1, 2]; k = 2 |
o = 5; s = '99100' | o = len(s) | o = 5; s = '99100' |
s = {(11, 10), (10, 11)} | l = list(s) | l = [(11, 10), (10, 11)]; s = {(11, 10), (10, 11)} |
j = 128 | j += 1 | j = 129 |
d = 3; e = 3, 1, 3; f = 1 | e = tuple(sorted([d, f])) | d = 3; e = (1, 3); f = 1 |
g = [10, 5, 20, 20, 4, 5, 2, 25, 1]; i = 8; o = 2 | o = g[i] | g = [10, 5, 20, 20, 4, 5, 2, 25, 1]; i = 8; o = 1 |
n = 4.0389678347315804e-27 | n /= 2 | n = 2.0194839173657902e-27 |
a = [1, 3, 1, 2]; h = 1; i = 1; z = 200 | z += i * a[h] | a = [1, 3, 1, 2]; h = 1; i = 1; z = 203 |
i = 4; j = [3, 9, 21, 45]; w = [3, 6, 12, 24, 48, 96, 25769803776, 51539607552, 103079215104, 206158430208, 412316860416, 824633720832] | j.append(j[i - 1] + w[i]) | i = 4; j = [3, 9, 21, 45, 93]; w = [3, 6, 12, 24, 48, 96, 25769803776, 51539607552, 103079215104, 206158430208, 412316860416, 824633720832] |
r = 17 | r += 1 | r = 18 |
i = 5; n = [0, 1, 3, 0, 4] | n.append(n[i - 1] ^ i) | i = 5; n = [0, 1, 3, 0, 4, 1] |
a = {'Krishna': ['67', '68', '69']}; j = ['Arjun', '70', '98', '63'] | a[j[0]] = j[1:] | a = {'Krishna': ['67', '68', '69'], 'Arjun': ['70', '98', '63']}; j = ['Arjun', '70', '98', '63'] |
b = 2; e = 1; z = 2 | b = e + z | b = 3; e = 1; z = 2 |
a = 'This$#i' | i += a | a = 'This$#i'; i = '97I8d4ZNUoZMdpThis$#i' |
i = 'K', 'H' | i = str(i) | i = "('K', 'H')" |
a = [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0]]; j = 3 | a[j - 1].append(0) | a = [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]; j = 3 |
m = ['aab', 'aac']; s = 'aacghgh' | m.append(s) | m = ['aab', 'aac', 'aacghgh']; s = 'aacghgh' |
i = 3; s = 'saveChangesInTheEditor'; z = 'v' | z = s[i] | i = 3; s = 'saveChangesInTheEditor'; z = 'e' |
k = 2; p = [0, 4] | k = p[0] | k = 0; p = [0, 4] |
b = 3; d = [10, 20, 30, 100, 200, 300, 1000]; x = 0 | m = d[x + b - 1] - d[x] | b = 3; d = [10, 20, 30, 100, 200, 300, 1000]; m = 20; x = 0 |
a = [[4, 3, 2, 1, 3, 4], [1, 3, 2]]; i = 0; m = 3; s = 2 | m = a[i][s] | a = [[4, 3, 2, 1, 3, 4], [1, 3, 2]]; i = 0; m = 2; s = 2 |
a = 13; d = [0, 2, 0, 2, 0, 0, 1, 0, 1, 2, 1, 0, 1, 0, 0, 0, 1, 2, 1, 0, 3, 2, 1, 1, 0, 1, 1, 1, 0, 2, 2, 0] | d[a] += 1 | a = 13; d = [0, 2, 0, 2, 0, 0, 1, 0, 1, 2, 1, 0, 1, 1, 0, 0, 1, 2, 1, 0, 3, 2, 1, 1, 0, 1, 1, 1, 0, 2, 2, 0] |
a = 1; b = 1 | a += b | a = 2; b = 1 |
d = []; u = 2 | d = [u] | d = [2]; u = 2 |
e = {(1.0): 1}; j = 0; n = 2; w = 6; x = 1.0 | w = e[x] * n - j | e = {1.0: 1}; j = 0; n = 2; w = 2; x = 1.0 |
z = ['1', '0', '0', '0'] | z[1] = '1' | z = ['1', '1', '0', '0'] |
h = [[89.0, 90.0, 78.0, 93.0, 80.0], [90.0, 91.0, 85.0, 88.0, 86.0]]; w = [91.0, 92.0, 83.0, 89.0, 90.5] | h.append(w) | h = [[89.0, 90.0, 78.0, 93.0, 80.0], [90.0, 91.0, 85.0, 88.0, 86.0], [91.0, 92.0, 83.0, 89.0, 90.5]]; w = [91.0, 92.0, 83.0, 89.0, 90.5] |