start
stringlengths 5
368
| code
stringlengths 5
143
| end
stringlengths 5
527
|
---|---|---|
x = [[False, False, False, False], [False, False, False, False], [False, False, False, False], [False, False, False, False], [False, False, False, False], [False, False, False, False]] | x[0][0] = True | x = [[True, False, False, False], [False, False, False, False], [False, False, False, False], [False, False, False, False], [False, False, False, False], [False, False, False, False]] |
l = 0; o = array([10.0, 30.0, 20.0, 40.0, 50.0]); t = 5 | t *= o.shape[l] | l = 0; o = array([10., 30., 20., 40., 50.]); t = 25 |
s = 102334155; t = 165580141 | s = t | s = 165580141; t = 165580141 |
d = 0; r = [3, 2]; x = [3, 2] | r = x[d + 1:] | d = 0; r = [2]; x = [3, 2] |
k = [2, 1, 1] | b = sum(k) | b = 4; k = [2, 1, 1] |
i = 14; x = 169 | x = i * i | i = 14; x = 196 |
f = 3; l = [[0, 1, 1, 0], [1, 1, 1, 0], [2, 1, 7, 0]]; y = 1 | l.append([f, y, 1, 0]) | f = 3; l = [[0, 1, 1, 0], [1, 1, 1, 0], [2, 1, 7, 0], [3, 1, 1, 0]]; y = 1 |
j = 3 | y = j + 1 | j = 3; y = 4 |
j = 3; l = 6; m = '0b1011'; s = '10000' | s = m[2:j] + '0' * (l - j) | j = 3; l = 6; m = '0b1011'; s = '1000' |
y = [2, 1, 8] | t = y[0] | t = 2; y = [2, 1, 8] |
b = '1'; s = '111111111111111111' | s += b | b = '1'; s = '1111111111111111111' |
f = [9, 49, 64, 81] | del f[0] | f = [49, 64, 81] |
p = 7; r = 3.141592653589793; t = 22; v = 0.2844497964469359 | v = abs(r - float(t) / float(p)) | p = 7; r = 3.141592653589793; t = 22; v = 0.0012644892673496777 |
d = {'Harsh': ('25', '26.5', '28'), 'Anurag': ('26', '28', '30')}; n = 'Harsh' | t = d[n] | d = {'Harsh': ('25', '26.5', '28'), 'Anurag': ('26', '28', '30')}; n = 'Harsh'; t = ('25', '26.5', '28') |
n = 10; s = 'aba' | f = n % len(s) | f = 1; n = 10; s = 'aba' |
g = 1 | g += 1 | g = 2 |
e = 3 | g = [(0) for _ in range(e + 1)] | e = 3; g = [0, 0, 0, 0] |
a = 1; r = 3; u = 1 | a, u = r // 2, r % 2 | a = 1; r = 3; u = 1 |
r = [102, 97, 105, 108, 117, 104] | r.sort() | r = [97, 102, 104, 105, 108, 117] |
i = -1; w = 2 | w += i | i = -1; w = 1 |
i = 2; j = 2; p = [(1, 1)] | p.append((i, j)) | i = 2; j = 2; p = [(1, 1), (2, 2)] |
g = 1; i = 2; j = 1; s = [[0, 0, 1], [0, 0, 1], [0, 2, 1]] | s[i][j - 1] = s[i][j] + (g ^ 1) | g = 1; i = 2; j = 1; s = [[0, 0, 1], [0, 0, 1], [2, 2, 1]] |
g = [110, 0, 7, 1]; w = 0 | g[w] += 1 | g = [111, 0, 7, 1]; w = 0 |
h = [-5, -1, 2, 2, 3, 4]; n = 6; v = 10 | v = h[n - 1] | h = [-5, -1, 2, 2, 3, 4]; n = 6; v = 4 |
a = 46368; q = {1, 2, 3, 5, 8, 13, 144, 21, 2584, 34, 17711, 55, 1597, 10946, 4181, 89, 987, 610, 233, 6765, 28657, ...} | q.add(a) | a = 46368; q = {1, 2, 3, 5, 8, 13, 144, 21, 2584, 46368, 34, 17711, 55, 1597, 10946, 4181, 89, 987, Ellipsis, 610, 233, 6765, 28657} |
q = '1111111111111111111' | q += '1' | q = '11111111111111111111' |
x = 1; y = 2; z = 3 | f, k = abs(z - x), abs(y - z) | f = 2; k = 1; x = 1; y = 2; z = 3 |
p = [1, 4, 8] | x = sum(p) | p = [1, 4, 8]; x = 13 |
g = []; m = -1, -1 | g.append(m) | g = [(-1, -1)]; m = (-1, -1) |
i = 2; j = 2; m = [[1, 1, 1, 2], [1, 'X', 1, 2], [1, 8, 9, 2], [1, 2, 3, 4]] | m[i][j] = 'X' | i = 2; j = 2; m = [[1, 1, 1, 2], [1, 'X', 1, 2], [1, 8, 'X', 2], [1, 2, 3, 4]] |
h = 26; j = 6; k = 2 | h = 4 * j + 1 + k | h = 27; j = 6; k = 2 |
n = 2; v = 2; y = 0 | v = 2 * n - 1 - y | n = 2; v = 3; y = 0 |
i = 1; m = '101'; s = '010203' | m = s[:i] | i = 1; m = '0'; s = '010203' |
j = 3; s = [(0, 0), (1, 0), (2, 1), (3, 2)]; z = 4 | s.append((z, j)) | j = 3; s = [(0, 0), (1, 0), (2, 1), (3, 2), (4, 3)]; z = 4 |
q = 4; x = 1; z = [1, 2, 3, 2, 3, 2, 1] | z[q] -= x | q = 4; x = 1; z = [1, 2, 3, 2, 2, 2, 1] |
i = 0; t = ['a', 'a', 'a', 'b', 'c', 'c', 'd', 'd', 'd'] | del t[i] | i = 0; t = ['a', 'a', 'b', 'c', 'c', 'd', 'd', 'd'] |
i = 11; j = 13; x = 7 | x = i ^ j | i = 11; j = 13; x = 6 |
i = 10; u = 2 | i = u | i = 2; u = 2 |
b = 3; m = {(1): [3, 2], (3): [1, 4, 2], (4): [3, 2], (2): [4, 1, 3], (5): [6], (6 ): [5]}; x = [3, 4, 1] | x.extend(m[b]) | b = 3; m = {1: [3, 2], 3: [1, 4, 2], 4: [3, 2], 2: [4, 1, 3], 5: [6], 6: [5]}; x = [3, 4, 1, 1, 4, 2] |
m = [None, None, None, '3']; n = 1; u = [-1, 3, -1, -1] | m[u[n]] = None | m = [None, None, None, None]; n = 1; u = [-1, 3, -1, -1] |
c = [3, 2, 1, 4, 5]; q = 4; w = 2 | c[w] = c[q] | c = [3, 2, 5, 4, 5]; q = 4; w = 2 |
j = 439006; q = [64630, 11735, 14216, 99233, 14470, 4978, 73429, 38120, 51135, 67060] | j /= len(q) | j = 43900.6; q = [64630, 11735, 14216, 99233, 14470, 4978, 73429, 38120, 51135, 67060] |
v = '\n'; y = 'B' | y = v | v = '\n'; y = '\n' |
f = 4; h = 7; j = 2; n = 0; q = 0; s = 0; t = 0; u = 0 | h = q + t + u + f + j + n + s | f = 4; h = 6; j = 2; n = 0; q = 0; s = 0; t = 0; u = 0 |
j = [5, 4, 4, 2, 2, 8] | j = sorted(j) | j = [2, 2, 4, 4, 5, 8] |
b = '8'; l = '2 4 6 8 ' | l += str(b) + ' ' | b = '8'; l = '2 4 6 8 8 ' |
a = [21, 28, 26, 5]; c = 4; x = 0; y = 2 | c = bin(a[x] | a[y]).count('1') | a = [21, 28, 26, 5]; c = 5; x = 0; y = 2 |
c = 'A'; y = 'C' | y += c | c = 'A'; y = 'CA' |
f = [4, 4, 3, 0, 0]; i = 2 | f[i] += 1 | f = [4, 4, 4, 0, 0]; i = 2 |
c = 'a'; u = Counter({'a': 1}) | u[c] += 1 | c = 'a'; u = Counter({'a': 2}) |
n = 1; y = 6 | y += 2 ** (n - 1) | n = 1; y = 7 |
q = ['i', 'o', 'u'] | del q[0] | q = ['o', 'u'] |
d = '555'; r = ['-1'] | r.append(d) | d = '555'; r = ['-1', '555'] |
s = ['3', '4', '21', '36', '10', '28', '35', '5', '24', '42'] | s[i] = int(s[i]) | i = False; s = [3, '4', '21', '36', '10', '28', '35', '5', '24', '42'] |
f = 433494437; s = {1, 2, 3, 5, 2178309, 8, 13, 144, 75025, 21, 2584, 46368, 34, 63245986, 832040, 39088169, 17711, ...} | s.add(f) | f = 433494437; s = {1, 2, 3, 2178309, 5, 8, 13, 144, 75025, 21, 2584, 46368, 34, 63245986, 433494437, 832040, 39088169, 17711, Ellipsis} |
n = [[0, 0, 0], [0, 0, 1], [0, 1, 0], [0, 1, 2], [0, 2, 1], [1, 2, 2], [2, 0, 1], [2, 0, 2], [2, 1, 0]]; q = [2, 1, 1] | n.append(q) | n = [[0, 0, 0], [0, 0, 1], [0, 1, 0], [0, 1, 2], [0, 2, 1], [1, 2, 2], [2, 0, 1], [2, 0, 2], [2, 1, 0], [2, 1, 1]]; q = [2, 1, 1] |
d = [1, 1, 1, 2, 2]; g = 2 | r = d[g - 1] - d[0] | d = [1, 1, 1, 2, 2]; g = 2; r = 0 |
g = [28]; o = [78, 60] | o.append(g.pop()) | g = []; o = [78, 60, 28] |
n = '3'; x = {(1): 1, (5): 1} | x[int(n)] = 1 | n = '3'; x = {1: 1, 5: 1, 3: 1} |
i = 25; x = 576 | x = i * i | i = 25; x = 625 |
i = 'R'; x = 'hACKER' | x = x + i.lower() | i = 'R'; x = 'hACKERr' |
j = 2; k = 2 | j += k | j = 4; k = 2 |
a = [-7330761, -6461594, -3916237, -3620601, -357920, -520, -470, -20, 30, 266854, 6246457, 7374819]; c = 8; x = [-520, -470] | x.append(a[c - 1]) | a = [-7330761, -6461594, -3916237, -3620601, -357920, -520, -470, -20, 30, 266854, 6246457, 7374819]; c = 8; x = [-520, -470, -20] |
j = 1; k = 0; v = 0 | h += j * 10 ** k * (v + 1) | h = -56; j = 1; k = 0; v = 0 |
i = 0; k = 2; s = 'kkkkkkz' | k = s[:k].rfind(s[i]) | i = 0; k = 1; s = 'kkkkkkz' |
x = deque([42]) | x.popleft() | x = deque([]) |
i = 8; s = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1] | s[i] = s[i + 1] + 1 | i = 8; s = [1, 1, 1, 1, 1, 1, 1, 1, 2, 1] |
i = 2; o = 9.0; q = [[0, 2, 1, 3, 4], [2, 1, 0, 3, 4], [], [], []]; r = [[10.0, 30.0, 20.0, 40.0, 50.0], [11.0, 9.0, 5.0, 19.0, 29.0], [21.0, 9.0, 15.0, 19.0, 39.0], [91.0, 9.0, 75.0, 19.0, 89.0], [81.0, 99.0, 55.0, 59.0, 89.0]] | q[i].append(r[i].index(o)) | i = 2; o = 9.0; q = [[0, 2, 1, 3, 4], [2, 1, 0, 3, 4], [1], [], []]; r = [[10.0, 30.0, 20.0, 40.0, 50.0], [11.0, 9.0, 5.0, 19.0, 29.0], [21.0, 9.0, 15.0, 19.0, 39.0], [91.0, 9.0, 75.0, 19.0, 89.0], [81.0, 99.0, 55.0, 59.0, 89.0]] |
i = 0; v = [3, 1, 2] | v[i] = v[i + 1] | i = 0; v = [1, 1, 2] |
g = '17'; x = 18 | g = str(x) | g = '18'; x = 18 |
j = '3'; o = {'1': 0, '2': 0, '4': 0, '6': 0, '5': 0} | o[j] = 0 | j = '3'; o = {'1': 0, '2': 0, '4': 0, '6': 0, '5': 0, '3': 0} |
o = 98 | c.add(o) | c = {98}; o = 98 |
s = 2; t = {(1): {'1': 1}} | t[s] = {} | s = 2; t = {1: {'1': 1}, 2: {}} |
g = '1002'; k = 3; s = ['7', '8', '9', '1', '0', '1', '1'] | g = ''.join(map(str, s[:k])) | g = '789'; k = 3; s = ['7', '8', '9', '1', '0', '1', '1'] |
r = 0; u = [5, 3, 2] | l = u[r + 1:] | l = [3, 2]; r = 0; u = [5, 3, 2] |
d = [5, 10]; l = ['append', '9'] | getattr(d, l[0])(int(l[1])) | d = [5, 10, 9]; l = ['append', '9'] |
n = 1 | i = 4 * n | i = 4; n = 1 |
a = 1; j = 26; n = 2; t = -23 | t = a * n - j | a = 1; j = 26; n = 2; t = -24 |
e = [1, 2, 3, 4]; i = 2; n = 7 | n += e[i - 1] | e = [1, 2, 3, 4]; i = 2; n = 9 |
j = 1; q = [1, 1, 1] | q.append(j) | j = 1; q = [1, 1, 1, 1] |
i = 2; j = 2; k = ['a', 'b', 'c', 'd', 'ab', 'bc']; s = ['a', 'b', 'c', 'd'] | k.append(''.join(sorted(s[j:j + i]))) | i = 2; j = 2; k = ['a', 'b', 'c', 'd', 'ab', 'bc', 'cd']; s = ['a', 'b', 'c', 'd'] |
i = 1; t = [0, 9] | t.append(t[-1] + 9 * 2 ** i) | i = 1; t = [0, 9, 27] |
k = 3; n = 10; p = 'aabbbb'; x = 'aaaaabbbbaaaa' | p = x[k:n] | k = 3; n = 10; p = 'aabbbba'; x = 'aaaaabbbbaaaa' |
d = 3; t = 2 | d += t | d = 5; t = 2 |
j = '11111111111111111111111111' | j += '1' | j = '111111111111111111111111111' |
h = ['e', 'b', 'a', 'c', 'd']; j = 1 | z = h[j] | h = ['e', 'b', 'a', 'c', 'd']; j = 1; z = 'b' |
d = 26.5; u = 'Anurag 26 28 30' | d = float(u.split()[2]) | d = 28.0; u = 'Anurag 26 28 30' |
b = 11 | b += 1 | b = 12 |
n = ['6', 'gh']; u = [(0, '-'), (6, '-'), (0, '-')] | u.append((int(n[0]), '-')) | n = ['6', 'gh']; u = [(0, '-'), (6, '-'), (0, '-'), (6, '-')] |
y = '10 2 5' | y = y.split() | y = ['10', '2', '5'] |
a = 56; i = 11; j = 52 | a = i ^ j | a = 63; i = 11; j = 52 |
a = [5, 10, 3] | f = {a[x]: x for x in range(len(a))} | a = []; f = {} |
i = {'ive': 1}; t = 'got' | i[t] = 1 | i = {'ive': 1, 'got': 1}; t = 'got' |
l = 'a'; r = 'c '; w = set() | w.add((l + r, 0)) | l = 'a'; r = 'c '; w = {('ac ', 0)} |
f = 3 | f += 1 | f = 4 |
k = 0; s = ['b', 'e', 'e', 'c', 'd'] | s[k + 1] = s[k] | k = 0; s = ['b', 'b', 'e', 'c', 'd'] |
m = 0; n = 2; x = 1 | m = (x ^ lastAns) % n | j = 51; m = 0; n = 2; x = 1 |
t = [True, True, False, False, False] | t[3] = True | t = [True, True, False, True, False] |
m = '9195969878'; s = ['7895462130', '9875641230'] | s.append(m) | m = '9195969878'; s = ['7895462130', '9875641230', '9195969878'] |
l = True; v = 1 | v = v ^ int(l) | l = True; v = 0 |