start stringlengths 5 368 | code stringlengths 5 143 | end stringlengths 5 527 |
|---|---|---|
o = 13 | o += 1 | o = 14 |
i = [2, 3, 4, 4, 5, 6]; j = 3; k = 2; q = [1.0] | q.append(i[j] / k) | i = [2, 3, 4, 4, 5, 6]; j = 3; k = 2; q = [1.0, 2.0] |
i = 1 | i += 1 | i = 2 |
g = ['h', 'e', 'f', 'g']; i = -1 | i = len(g) - 2 | g = ['h', 'e', 'f', 'g']; i = 2 |
f = """3\n1 0\n2 $\n3 1\n\n\n\n"""; u = ['3', '1'] | f = int(u[0]) / int(u[1]) | f = 3.0; u = ['3', '1'] |
b = 15; i = -6; x = 20 | x = b + i | b = 15; i = -6; x = 9 |
a = 1; b = 3; c = 4; d = [[99999999, 5, 99999999, 99999999, 99999999], [5, 99999999, 8, 4, 99999999], [99999999, 8, 99999999, 99999999, 5], [99999999, 99999999, 99999999, 99999999, 99999999], [99999999, 99999999, 5, 99999999, 99999999]] | d[b][a] = c | a = 1; b = 3; c = 4; d = [[99999999, 5, 99999999, 99999999, 99999999], [5, 99999999, 8, 4, 99999999], [99999999, 8, 99999999, 99999999, 5], [99999999, 4, 99999999, 99999999, 99999999], [99999999, 99999999, 5, 99999999, 99999999]] |
q = 'eaeeea'; r = 7 | r = len(q) | q = 'eaeeea'; r = 6 |
v = [6] | v.pop() | v = [] |
i = 2; n = 68 | n += i | i = 2; n = 70 |
i = 2.0; j = 2; s = 1.0 | s, i = divmod(i, j) | i = 0.0; j = 2; s = 1.0 |
i = 3; j = 1; m = 35; u = 2; v = 3 | m = j * (i + v) + u * v | i = 3; j = 1; m = 12; u = 2; v = 3 |
b = 4; f = [3] | f.append(b) | b = 4; f = [3, 4] |
s = 'a92282' | s = s.replace('2', 'c') | s = 'a9cc8c' |
a = 1000; b = 0; p = 2; r = 1, 1001 | r = b + p, a | a = 1000; b = 0; p = 2; r = (2, 1000) |
b = 'a'; c = {'e': True} | c[b] = True | b = 'a'; c = {'e': True, 'a': True} |
k = [73]; u = [48, 67, 76] | k.append(u[0]) | k = [73, 48]; u = [48, 67, 76] |
x = 0; y = 2 | h.append((x, y)) | h = [(0, 2)]; x = 0; y = 2 |
i = 1.3789178124747465; n = 5; o = 0.22981963541245776 | o = i / n | i = 1.3789178124747465; n = 5; o = 0.2757835624949493 |
c = [67, 17]; z = {(95): 13, (97): 25, (93): 37, (79): 27, (75): 19, (49): 47} | z[c[0]] = c[1] | c = [67, 17]; z = {95: 13, 97: 25, 93: 37, 79: 27, 75: 19, 49: 47, 67: 17} |
s = 3 | s += 3 | s = 6 |
i = 1 | g[i] = True | g = {1: True}; i = 1 |
i = 'z'; l = [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, 7] | h = max(h, l[ord(i) - ord('a')]) | h = 7; i = 'z'; l = [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, 7] |
d = 1; j = '0' | d = int(j) | d = 0; j = '0' |
x = 95 | x -= 1 | x = 94 |
b = 3; j = 33; w = 6; y = 1; z = 1 | j = b * z + b * y + w * y | b = 3; j = 12; w = 6; y = 1; z = 1 |
a = 'GGBBGB'; i = 3; j = 3; q = [['G', 'G', 'G', 'G', 'G', 'G'], ['G', 'B', 'B', 'B', 'G', 'B'], ['G', 'G', 'G', 'G', 'G', 'G'], ['G', 'G', 'B', '', '', '']] | q[i][j] = a[j] | a = 'GGBBGB'; i = 3; j = 3; q = [['G', 'G', 'G', 'G', 'G', 'G'], ['G', 'B', 'B', 'B', 'G', 'B'], ['G', 'G', 'G', 'G', 'G', 'G'], ['G', 'G', 'B', 'B', '', '']] |
a = 'cdcdcdcdeeeef'; i = 0 | b += [a.count(a[i])] | a = 'cdcdcdcdeeeef'; b = [4]; i = 0 |
i = 1; v = [['0', '-'], ['6', 'cd'], ['0', 'ef'], ['6', 'gh'], ['2', 'not'], ['4', 'is'], ['2', 'to'], ['4', 'the']] | v[i][1] = '-' | i = 1; v = [['0', '-'], ['6', '-'], ['0', 'ef'], ['6', 'gh'], ['2', 'not'], ['4', 'is'], ['2', 'to'], ['4', 'the']] |
i = 119; s = 'aabbccddeefghi'; t = [2, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] | t.append(s.count(chr(i))) | i = 119; s = 'aabbccddeefghi'; t = [2, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] |
h = ['i', 'came', 'from', 'the', 'moon.', 'he', 'went', 'she', 'went', 'to', 'the', 'drawing', 'room.']; i = 11; u = 'the' | u = h[i].strip() | h = ['i', 'came', 'from', 'the', 'moon.', 'he', 'went', 'she', 'went', 'to', 'the', 'drawing', 'room.']; i = 11; u = 'drawing' |
b = 'the'; i = 7; p = ['i', 'came', 'from', 'the', 'moon.', 'he', 'went', 'she', 'went', 'to', 'the', 'drawing', 'room.'] | b = p[i + 2].strip().replace('.', '') | b = 'to'; i = 7; p = ['i', 'came', 'from', 'the', 'moon.', 'he', 'went', 'she', 'went', 'to', 'the', 'drawing', 'room.'] |
a = 'becausewecan'; q = 'because' | a = a[len(q):] | a = 'wecan'; q = 'because' |
a = 0; i = 2 | i = a | a = 0; i = 0 |
n = 2; x = 0 | e = (x ^ lastAns) % n | e = 1; n = 2; o = 67; x = 0 |
g = 3; q = [2, 1, 3, 5, 4]; y = 1 | g = q[y] | g = 1; q = [2, 1, 3, 5, 4]; y = 1 |
n = 7; q = 4; s = 4 | q = (s + n) // 2 | n = 7; q = 5; s = 4 |
i = 3; j = 3; l = 6 | j = l - 1 - i | i = 3; j = 2; l = 6 |
i = 40 | i += 1 | i = 41 |
c = 'b'; d = ['b'] | d.append(c) | c = 'b'; d = ['b', 'b'] |
a = [1, 1, 1]; s = 2 | a.append(s) | a = [1, 1, 1, 2]; s = 2 |
d = 0.375; n = 0.1875; p = 2 | d = n % p | d = 0.1875; n = 0.1875; p = 2 |
j = 3; k = ['CAAADA']; x = [] | x.append(k[-1][:j]) | j = 3; k = ['CAAADA']; x = ['CAA'] |
j = [500, 600]; l = 500 | l += j[0] | j = [500, 600]; l = 1000 |
a = ['6']; b = {(0): 0, (1): 6, (2): 6}; i = 2 | a.append(str(b[i])) | a = ['6', '6']; b = {0: 0, 1: 6, 2: 6}; i = 2 |
m = 0, True, None, 1; n = [(0, True, None, 2), (1, False, None, 1)] | m = n.pop() | m = (1, False, None, 1); n = [(0, True, None, 2)] |
g = [[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]]; i = 0; j = 2; k = 8 | k = g[j + 2][i] + g[j + 2][i + 1] + g[j + 2][i + 2] | g = [[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]]; i = 0; j = 2; k = 0 |
i = 0; j = 0; s = 'abba' | r = ''.join(sorted(s[i:j + 1])) | i = 0; j = 0; r = 'a'; s = 'abba' |
c = [(1, 2), (1, 4), (3, 0), (3, 3), (6, 1)]; i = 1 | f, b = c[i - 1] | b = 2; c = [(1, 2), (1, 4), (3, 0), (3, 3), (6, 1)]; f = 1; i = 1 |
b = 0, 0; o = 0, 2; p = 0, 0; q = {(0, 0), (2, 2)}; u = 0, 0 | q = {p, o, b, u} | b = (0, 0); o = (0, 2); p = (0, 0); q = {(0, 0), (0, 2)}; u = (0, 0) |
f = {(1): 0, (2): 0, (3): 0, (4): 0}; v = 1 | n, t = f[v], f[v] | f = {1: 0, 2: 0, 3: 0, 4: 0}; n = 0; t = 0; v = 1 |
c = 0; m = deque([1, 2]) | c = m.popleft() | c = 1; m = deque([2]) |
i = 0; j = [-10000000000, 30, 38, 48, 50, 60, 10000000000] | a, b = j[i], j[i + 1] | a = -10000000000; b = 30; i = 0; j = [-10000000000, 30, 38, 48, 50, 60, 10000000000] |
i = 'append(3)'; t = ['appendleft', '4'] | i = t[0] | i = 'appendleft'; t = ['appendleft', '4'] |
r = [[1, 1], [1, 1]] | b = len(r) | b = 2; r = [[1, 1], [1, 1]] |
b = '7283455864' | d.append(b) | b = '7283455864'; d = ['7283455864'] |
a = ['h', 'e', 'f', 'g']; j = 3; x = 'b' | x = a[j - 1] | a = ['h', 'e', 'f', 'g']; j = 3; x = 'f' |
c = '2'; s = ['1', '26'] | c = s[0] | c = '1'; s = ['1', '26'] |
c = 2; d = 2; k = 3 | c = k - d | c = 1; d = 2; k = 3 |
q = 1; u = 2 | q ^= u | q = 3; u = 2 |
a = [(0, '-'), (6, '-')]; s = 'ef'; x = 0 | a.append((x, s)) | a = [(0, '-'), (6, '-'), (0, 'ef')]; s = 'ef'; x = 0 |
s = 8 | s = s >> 1 | s = 4 |
a = 0; b = 0; q = deque([(0, 0, 0)]) | a, b, f = q.pop() | a = 0; b = 0; f = 0; q = deque([]) |
n = ['HACK', '2'] | t = n[0] | n = ['HACK', '2']; t = 'HACK' |
e = [1, 4, 1]; l = [5, 5, 6] | l[2] = l[2] - e.pop(0) | e = [4, 1]; l = [5, 5, 5] |
j = '11100\n'; k = ['10101'] | k.append(j.strip()) | j = '11100\n'; k = ['10101', '11100'] |
c = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121, 400, 441, 484, 529, 576, 625, 676, 729, 784, 841, 900]; x = 961 | c.append(x) | c = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121, 400, 441, 484, 529, 576, 625, 676, 729, 784, 841, 900, 961]; x = 961 |
s = 'abaab' | n = len(s) | n = 5; s = 'abaab' |
n = 0; t = [1, 0, 0, 0, 0, 0] | e = (e + t[n]) % 2 | e = 1.718281828459045; n = 0; t = [1, 0, 0, 0, 0, 0] |
n = [True, False, None, None, None, None, None, None, None, None]; r = [True, True, True, False, False, True, True, False, True, True]; x = 2 | n[x] = r[x] ^ r[x - 1] | n = [True, False, False, None, None, None, None, None, None, None]; r = [True, True, True, False, False, True, True, False, True, True]; x = 2 |
i = 10; k = 11 | q = int(bin(i ^ k), 2) | i = 10; k = 11; q = 1 |
p = [[]] | p.append([]) | p = [[], []] |
i = [True, True, True, False, False]; x = 3 | i[x] = True | i = [True, True, True, True, False]; x = 3 |
f = 8; n = 4; x = {(2): 2, (3): 3, (4): 3, (6): 4, (9): 4, (5): 4} | x[f] = n | f = 8; n = 4; x = {2: 2, 3: 3, 4: 3, 6: 4, 9: 4, 5: 4, 8: 4} |
i = 21; l = 2097151 | l |= 1 << i | i = 21; l = 4194303 |
f = [3, 6, 9, 12, 15, 18, 21, 25, None, None]; i = 8; v = 3.141592653589793 | f[i] = int((i + 1) * v) | f = [3, 6, 9, 12, 15, 18, 21, 25, 28, None]; i = 8; v = 3.141592653589793 |
e = '11111101111000001100001111' | e += '1' | e = '111111011110000011000011111' |
r = 18; t = 2, 1; z = {(0): 3, (1): 2} | r += t[0] * z[(t[1] + 1) % 2] | r = 24; t = (2, 1); z = {0: 3, 1: 2} |
x = 0; y = 0 | w = [(x - 2, y - 1), (x - 2, y + 1), (x - 1, y - 2), (x + 1, y - 2)] | w = [(-2, -1), (-2, 1), (-1, -2), (1, -2)]; x = 0; y = 0 |
w = 9 | w += 2 | w = 11 |
i = 11; x = 100 | x = i * i | i = 11; x = 121 |
j = 0; l = [7, 4, 3, 5, 6, 2] | l[j + 1] = l[j] | j = 0; l = [7, 7, 3, 5, 6, 2] |
a = 2 | x.append(a) | a = 2; x = [2] |
j = [10, 5]; s = 16; x = 9 | s += x % j[1] | j = [10, 5]; s = 20; x = 9 |
u = [6, 5, 4, 10, 9]; v = 10 | u.remove(v) | u = [6, 5, 4, 9]; v = 10 |
k = 1; s = 'or'; y = [(0, '-'), (6, '-'), (0, '-'), (6, '-'), (4, '-'), (3, 'be'), (0, 'to'), (1, 'be'), (5, 'question')] | y.append((k, s)) | k = 1; s = 'or'; y = [(0, '-'), (6, '-'), (0, '-'), (6, '-'), (4, '-'), (3, 'be'), (0, 'to'), (1, 'be'), (5, 'question'), (1, 'or')] |
j = 5; k = 0; p = []; s = 'ifailuhkqq' | p.append(list(s[k:k + j])) | j = 5; k = 0; p = [['i', 'f', 'a', 'i', 'l']]; s = 'ifailuhkqq' |
c = [1, 2]; i = 2; n = ['1', '2', '3'] | c.append(int(n[i])) | c = [1, 2, 3]; i = 2; n = ['1', '2', '3'] |
a = 4 | a -= 1 | a = 3 |
y = ['1', '2', '3', '4', '3', '3', '2', '1'] | a = [int(x) for x in y] | a = [1, 2, 3, 4, 3, 3, 2, 1]; y = ['1', '2', '3', '4', '3', '3', '2', '1'] |
e = 'Harsh 25 26.5 28' | s = e.split(' ') | e = 'Harsh 25 26.5 28'; s = ['Harsh', '25', '26.5', '28'] |
s = '19'; x = 25 | s = str(x) | s = '25'; x = 25 |
a = 11; k = '1011' | k = k + str(int(a) + 1) | a = 11; k = '101112' |
o = {(0): []}; u = 0; v = 2 | o[u].append(v) | o = {0: [2]}; u = 0; v = 2 |
i = 1; j = 5; u = [['T', 's', 'i'], ['h', '%', 'x'], ['i', ' ', '#'], ['$', 'a', ' '], [ '#', 't', '%'], ['i', 'r', '!']]; w = 'This$#is% Ma' | w = w + u[j][i] | i = 1; j = 5; u = [['T', 's', 'i'], ['h', '%', 'x'], ['i', ' ', '#'], ['$', 'a', ' '], ['#', 't', '%'], ['i', 'r', '!']]; w = 'This$#is% Mar' |
n = 0.025074013076873403; v = 0.05840734641020706 | v = n | n = 0.025074013076873403; v = 0.025074013076873403 |
c = {'a': 1, 'b': 1, 'c': 1, 'd': 0}; x = 'e' | c[x] = 0 | c = {'a': 1, 'b': 1, 'c': 1, 'd': 0, 'e': 0}; x = 'e' |
h = {'a': 1}; i = 'a' | h[i] += 1 | h = {'a': 2}; i = 'a' |
i = 4; s = [3, 3, 9, 9, 5]; v = [0, 3, 6, 15, 0, 0] | v[i] = v[i - 1] + s[i - 1] | i = 4; s = [3, 3, 9, 9, 5]; v = [0, 3, 6, 15, 24, 0] |
i = 'f'; s = {'c': 4, 'd': 4, 'e': 4} | s[i] = 1 | i = 'f'; s = {'c': 4, 'd': 4, 'e': 4, 'f': 1} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.