start
stringlengths 5
368
| code
stringlengths 5
143
| end
stringlengths 5
527
|
---|---|---|
n = ['1', 'abc'] | h = n[1] | h = 'abc'; n = ['1', 'abc'] |
c = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']; p = 's'; s = 17 | s = c.index(p) | c = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']; p = 's'; s = 11 |
a = 1; g = 3 | g += a | a = 1; g = 4 |
c = 'e'; y = {'a': 2, 'b': 2, 'c': 2, 'd': 2, 'e': 1} | y[c] += 1 | c = 'e'; y = {'a': 2, 'b': 2, 'c': 2, 'd': 2, 'e': 2} |
f = [4, 1, 3, 1, 1] | f.append(1) | f = [4, 1, 3, 1, 1, 1] |
q = 'today'; r = {'give': 0, 'me': 1, 'one': 0, 'grand': 0, 'today': 1, 'night': 1} | r[q] -= 1 | q = 'today'; r = {'give': 0, 'me': 1, 'one': 0, 'grand': 0, 'today': 0, 'night': 1} |
f = [[4, 8, 12, 5, 1, 2], [11, 10, 6, 7]]; i = 1; o = [[3, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 16]]; v = 0 | o[v][v + i] = f[v].pop(0) | f = [[8, 12, 5, 1, 2], [11, 10, 6, 7]]; i = 1; o = [[3, 4, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 16]]; v = 0 |
h = '16'; w = '20' | w, h = [int(w), int(h)] | h = 16; w = 20 |
e = {(1): 1}; n = 0 | e.update({(n - 2, fib2)}) | e = {1: 1, -2: -64}; n = 0; o = -64 |
q = [None, 3, -1, -1, -1, 8, 9, -1, 11]; r = -1 | q.append(r) | q = [None, 3, -1, -1, -1, 8, 9, -1, 11, -1]; r = -1 |
l = [[0, 0, 0], [0, 0, 1], [0, 1, 0], [0, 1, 2], [0, 2, 1], [1, 2, 0], [1, 2, 1], [1, 2, 2], [2, 0, 1]]; p = [2, 0, 2] | l.append(p) | l = [[0, 0, 0], [0, 0, 1], [0, 1, 0], [0, 1, 2], [0, 2, 1], [1, 2, 0], [1, 2, 1], [1, 2, 2], [2, 0, 1], [2, 0, 2]]; p = [2, 0, 2] |
a = 68.0; r = 'Krishna' | d[r] = a | a = 68.0; d = {'Krishna': 68.0}; r = 'Krishna' |
d = 43; i = 7; x = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] | d -= x[i] | d = 12; i = 7; x = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] |
i = 1; j = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; k = 4; v = 4 | v = j[i + k - 1] | i = 1; j = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; k = 4; v = 10 |
m = 'bcd'; t = ['c'] | m = ''.join(t) | m = 'c'; t = ['c'] |
b = 4 | b += 4 | b = 8 |
a = [0, 1]; i = 2 | a.append(i) | a = [0, 1, 2]; i = 2 |
e = [[0, 'ab'], [1, 'cd'], [2, 'ef'], [3, 'gh'], [4, 'ij'], [5, 'ab'], [6, 'cd'], [7, 'ef']]; i = 8; s = 'gh' | e.append([i, s]) | e = [[0, 'ab'], [1, 'cd'], [2, 'ef'], [3, 'gh'], [4, 'ij'], [5, 'ab'], [6, 'cd'], [7, 'ef'], [8, 'gh']]; i = 8; s = 'gh' |
u = [12, 98]; y = 42, 68 | y = u[0], u[1] | u = [12, 98]; y = (12, 98) |
c = 100; i = 5; s = '101103' | c = 10 * c + int(s[i]) | c = 1003; i = 5; s = '101103' |
o = 3458; s = 0; t = 2863 | o = t + s | o = 2863; s = 0; t = 2863 |
x = [[8, 6, 9], [7, 2, 5], [1, 4, 3]] | w = type(x) | w = <class 'list'>; x = [[8, 6, 9], [7, 2, 5], [1, 4, 3]] |
a = 1.2000000000000004e-29; b = 1.2000000000000005e-30 | a = b % 10 | a = 1.2000000000000005e-30; b = 1.2000000000000005e-30 |
t = [1, 0]; y = 0 | t.append(y) | t = [1, 0, 0]; y = 0 |
c = 3; r = 4; u = 1; v = 1 | r, c = r + v, c + u | c = 4; r = 5; u = 1; v = 1 |
n = 6; s = 'B_RRBR' | n = len(s) | n = 6; s = 'B_RRBR' |
e = [0, 0]; x = 1 | e[x - 1] += 1 | e = [1, 0]; x = 1 |
d = {(1): {1}, (2): set(), (3): set()}; i = 2; j = 2 | d[j].add(i) | d = {1: {1}, 2: {2}, 3: set()}; i = 2; j = 2 |
k = [5, 3]; s = 7; y = 1 | s = k[y % len(k)] | k = [5, 3]; s = 3; y = 1 |
i = 0; j = 2; m = 7; s = 3; v = [3, 6, 1, 3, 1] | s = (v[j] - v[i] + m) % m | i = 0; j = 2; m = 7; s = 5; v = [3, 6, 1, 3, 1] |
w = [1, 4, 6, 4, 1]; z = [1, 1] | w = z | w = [1, 1]; z = [1, 1] |
s = deque([0, 1, 2, 3, 4]) | g = s.pop() | g = 4; s = deque([0, 1, 2, 3]) |
l = 1 | l += 1 | l = 2 |
i = 203; t = {} | t[i] = 0 | i = 203; t = {203: 0} |
v = 2; w = 3 | v = max(w, v) | v = 3; w = 3 |
c = 10; i = 2; s = [0, 10, 0, 10, 0, 10] | c = s[i] | c = 0; i = 2; s = [0, 10, 0, 10, 0, 10] |
a = [20, 30, 10]; c = 40; i = 1 | c -= a[i] | a = [20, 30, 10]; c = 10; i = 1 |
o = ['b', 'e', 'a', 'f']; x = 0 | n = o[x] | n = 'b'; o = ['b', 'e', 'a', 'f']; x = 0 |
c = [1, 97] | o = c[1] | c = [1, 97]; o = 97 |
y = '1' | y += str('1') | y = '11' |
l = 6; o = 0 | l = o | l = 0; o = 0 |
n = 'lmno' | g = n[::-1] | g = 'onml'; n = 'lmno' |
l = 20; w = [] | w.append(l) | l = 20; w = [20] |
i = 107; k = 2; z = {'a': 'c', 'b': 'd', 'c': 'e', 'd': 'f', 'e': 'g', 'f': 'h', 'g': 'i', 'h': 'j', 'i': 'k', 'j': 'l'} | z[chr(i)] = chr(i + k) | i = 107; k = 2; z = {'a': 'c', 'b': 'd', 'c': 'e', 'd': 'f', 'e': 'g', 'f': 'h', 'g': 'i', 'h': 'j', 'i': 'k', 'j': 'l', 'k': 'm'} |
m = 3 | s = m - 1 | m = 3; s = 2 |
j = 1; q = 'C'; t = 'CAA' | q = q + t[j] | j = 1; q = 'CA'; t = 'CAA' |
p = 1.8; q = 8 | q += p % 10 | p = 1.8; q = 9.8 |
b = '111111111111111000' | b = b + '0' | b = '1111111111111110000' |
a = ['append', '9']; r = [5, 10] | r.append(int(a[1])) | a = ['append', '9']; r = [5, 10, 9] |
e = '1'; o = 13 | o = o + int(e) | e = '1'; o = 14 |
a = 100; m = '9899' | m += str(a) | a = 100; m = '9899100' |
c = 8; o = '1001' | o = str(c) | c = 8; o = '8' |
x = 1.5 | x /= 2 | x = 0.75 |
f = [0, 1, 6, 7, 4, 5, 0, 7, 6]; i = 11; j = 14 | f.append(j ^ i) | f = [0, 1, 6, 7, 4, 5, 0, 7, 6, 5]; i = 11; j = 14 |
c = 6; k = [2, 5] | c = k.pop() | c = 5; k = [2] |
m = 19; n = 7; s = 2 | v = (s + m - 1) % n | m = 19; n = 7; s = 2; v = 6 |
a = 4; q = deque([3, 5]) | a = q.popleft() | a = 3; q = deque([5]) |
i = 22; q = [0, 1, 1, 1, 2, 3, 4, 5, 7, 10, 14, 19, 26, 36, 50, 69, 95, 131, 181, 250, 345, 476] | q.append(q[i - 1] + q[i - 4]) | i = 22; q = [0, 1, 1, 1, 2, 3, 4, 5, 7, 10, 14, 19, 26, 36, 50, 69, 95, 131, 181, 250, 345, 476, 657] |
k = '99999999999999999999999999999' | k += '9' | k = '999999999999999999999999999999' |
i = 0; k = 2; l = 3; s = '999100010001'; y = 99 | y = int(s[i + k:i + k + l]) | i = 0; k = 2; l = 3; s = '999100010001'; y = 910 |
b = 0; l = 0 | i = b * l | b = 0; i = 0; l = 0 |
i = 1; l = 'qA2'; y = [False] | y.append(l[i].isupper()) | i = 1; l = 'qA2'; y = [False, True] |
e = 0; o = [2, 1, 3] | e = o[2] | e = 3; o = [2, 1, 3] |
h = 1; i = 2; j = 1; l = [[0, 2, 1], [1, 1, 1], [2, 0, 0]] | h += l[j][i] | h = 2; i = 2; j = 1; l = [[0, 2, 1], [1, 1, 1], [2, 0, 0]] |
b = 1.2732925824820995e-11 | b /= 2 | b = 6.366462912410498e-12 |
d = -1, -1; k = 1; n = 1; x = 1; y = 1 | x, y = k + d[0], n + d[1] | d = (-1, -1); k = 1; n = 1; x = 0; y = 0 |
i = 2; k = [0, 1] | k.append(i) | i = 2; k = [0, 1, 2] |
x = [1, 4, 1] | d = id(x) | d = 139760243713520; x = [1, 4, 1] |
m = 4 | m *= 2 | m = 8 |
t = [(0, 0), (1, 1)] | a = t | a = [(0, 0), (1, 1)]; t = [(0, 0), (1, 1)] |
b = 4, 1; u = 4, 1 | u, b = None, None | b = None; u = None |
h = ['1112', '1912', '1892', '1234']; i = 1 | n = h[i][0] | h = ['1112', '1912', '1892', '1234']; i = 1; n = '1' |
d = [7, 0]; h = 1; i = 2 | d[h] = abs(a[i][0] - a[i][1]) | a = [[9, 4, -3], [9, -5, -7], [-3, 6, -2], [-5, 0, -6]]; d = [7, 9]; h = 1; i = 2 |
k = 2; m = 1; n = [1, 2, 3] | m ^= n[k] | k = 2; m = 2; n = [1, 2, 3] |
d = 'bb'; i = 1; j = 3; t = 'abba' | d = t[i:j + 1] | d = 'bba'; i = 1; j = 3; t = 'abba' |
i = 4; t = [4] | t.append(i * i) | i = 4; t = [4, 16] |
j = [[5, 4], [7, 8, 9]]; o = [5, 5, 7, 8, 9, 10] | j.append(o[1:]) | j = [[5, 4], [7, 8, 9], [5, 7, 8, 9, 10]]; o = [5, 5, 7, 8, 9, 10] |
l = 8; s = 'aa' | l = len(s) | l = 2; s = 'aa' |
c = {(1): 3}; n = 3; v = [1, 1, 1, 1, 2, 2, 2, 2, 2] | c[v[n]] += 1 | c = {1: 4}; n = 3; v = [1, 1, 1, 1, 2, 2, 2, 2, 2] |
b = '0000000000' | b += '0' | b = '00000000000' |
i = '3'; x = {'1': 2, '2': 2, '3': 2, '6': 3, '5': 3, '4': 2} | x[i] += 1 | i = '3'; x = {'1': 2, '2': 2, '3': 3, '6': 3, '5': 3, '4': 2} |
c = 9 | c //= 2 | c = 4 |
h = [1, 3, 4, 4, 5, 6]; i = 1 | h[i + 1] = h[i] | h = [1, 3, 3, 4, 5, 6]; i = 1 |
i = 3; s = 4 | s = 2 ** i | i = 3; s = 8 |
i = 0; k = 0; t = 0; u = [[1, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]] | u[i + 1][t] += u[i][k] | i = 0; k = 0; t = 0; u = [[1, 0, 0, 0, 0], [1, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]] |
m = '\\(' | i = CATEGORIES.get(m) | i = None; m = '\\('; n = {} |
p = 8589934592; y = ['1', '2', '4', '8', '16', '32', '268435456', '536870912', '1073741824', '2147483648', '4294967296'] | y.append(str(p)) | p = 8589934592; y = ['1', '2', '4', '8', '16', '32', '268435456', '536870912', '1073741824', '2147483648', '4294967296', '8589934592'] |
l = 11; p = 24; q = 28 | q = l ^ p | l = 11; p = 24; q = 19 |
a = 2; b = 42949672960; f = 42949673010 | f += a ^ b | a = 2; b = 42949672960; f = 85899345972 |
q = '999999999999999999999999999999999' | q += '9' | q = '9999999999999999999999999999999999' |
j = ['+-++++++++', '+-++++++++', '+-------++', '+-++++++++', '+-++++++++', '+------+++']; v = '+-+++-++++' | j.append(v) | j = ['+-++++++++', '+-++++++++', '+-------++', '+-++++++++', '+-++++++++', '+------+++', '+-+++-++++']; v = '+-+++-++++' |
g = [[1, 0, 0, 0, 0], [1, 1, 1, 1, 1], [1, 0, 1, 0, 0], [0, 0, 0, 0, 0]]; i = 1; k = 0; u = 4 | g[i + 1][u] += g[i][k] | g = [[1, 0, 0, 0, 0], [1, 1, 1, 1, 1], [1, 0, 1, 0, 1], [0, 0, 0, 0, 0]]; i = 1; k = 0; u = 4 |
o = [(89.0, 90.0, 78.0, 93.0, 80.0), (90.0, 91.0, 85.0, 88.0, 86.0)]; r = 91.0, 92.0, 83.0, 89.0, 90.5 | o.append(r) | o = [(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)]; r = (91.0, 92.0, 83.0, 89.0, 90.5) |
b = '0'; q = '11111111111111' | q += '1' if b == '0' else '0' | b = '0'; q = '111111111111111' |
j = 53 | j += 1 | j = 54 |
h = [1, 2, 1, 3, 2]; i = 2; m = 2; x = 3 | x -= h[i - m] | h = [1, 2, 1, 3, 2]; i = 2; m = 2; x = 2 |
i = 1; s = ['b', 'a', 'b'] | del s[i] | i = 1; s = ['b', 'b'] |
i = 'd'; z = 9 | z = ord(i) - ord('a') + 1 | i = 'd'; z = 4 |
d = [2]; j = 3 | j = d.pop(0) | d = []; j = 2 |
i = 11; j = 87; o = 93 | o = i ^ j | i = 11; j = 87; o = 92 |