start stringlengths 5 368 | code stringlengths 5 143 | end stringlengths 5 527 |
|---|---|---|
b = ['2', '2', '2', '2', '2', '2', '2']; i = 5; j = 1; t = ['2', '2', '2'] | t = b[j:i] | b = ['2', '2', '2', '2', '2', '2', '2']; i = 5; j = 1; t = ['2', '2', '2', '2'] |
q = [6, 5, 4, 9]; u = [6, 5, 4] | q = u[:] | q = [6, 5, 4]; u = [6, 5, 4] |
m = 2; n = [0, 0, 1, 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, 0, 0, 0]; q = 1 | q -= n[m] | m = 2; n = [0, 0, 1, 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, 0, 0, 0]; q = 0 |
c = 1; j = deque([3]) | c = j.popleft() | c = 3; j = deque([]) |
b = {'2', '5', '9', '4'}; i = {'2', '11', '12', '4'} | p = b.difference(i) | b = {'9', '5', '2', '4'}; i = {'11', '12', '2', '4'}; p = {'9', '5'} |
a = {(1): True, (3): True, (12): False, (5): False, (9): False, (10): False, (2): True, (6): True, (4): True, (8): True}; f = 12 | a[f] = True | a = {1: True, 3: True, 12: True, 5: False, 9: False, 10: False, 2: True, 6: True, 4: True, 8: True}; f = 12 |
i = 7 | s += str(i) + ' ' | i = 7; s = 'gYD87 ' |
i = 2 | b ^= i | b = -78; i = 2 |
a = 2; k = 1; y = {4, 5, 6} | y.add(a * k) | a = 2; k = 1; y = {2, 4, 5, 6} |
k = 2; q = 1 | k += q | k = 3; q = 1 |
f = 'zaba' | k = len(f) | f = 'zaba'; k = 4 |
w = [4, 1, 3, 2, 4] | w.pop() | w = [4, 1, 3, 2] |
h = 4; j = 5 | h = j | h = 5; j = 5 |
i = 9 | i += 1 | i = 10 |
c = 0; i = 1 | c = i | c = 1; i = 1 |
d = 1.5; v = 2.5 | d = v | d = 2.5; v = 2.5 |
d = [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, 1, 0] | d = [0] + d | d = [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, 1, 0] |
r = ( 'In the third category he included those Brothers...e forms without troubling about their purport or ' ); x = 'significance.' | r += x + ' ' | r = 'In the third category he included those Brothers...e forms without troubling about their purport or significance. '; x = 'significance.' |
r = 'In the third category he included those Brothers (the majority) who saw '; x = 'nothing' | r += x + ' ' | r = 'In the third category he included those Brothers (the majority) who saw nothing '; x = 'nothing' |
h = 3; i = 0; l = [1, 3, 1, 2]; o = 1 | o = o + (h - l[i]) | h = 3; i = 0; l = [1, 3, 1, 2]; o = 3 |
s = [(1, 0), (1, 1), (1, 1), (1, 0), (0, 2), (0, 1), (0, 3)]; u = 1; y = 2 | s.append((u + 1, y)) | s = [(1, 0), (1, 1), (1, 1), (1, 0), (0, 2), (0, 1), (0, 3), (2, 2)]; u = 1; y = 2 |
a = {'D': 2, 'F': 1, 'Q': 3}; i = 'F' | a[i] += 1 | a = {'D': 2, 'F': 2, 'Q': 3}; i = 'F' |
g = 5; i = 2; p = [(1, 4)] | p.append((i, g)) | g = 5; i = 2; p = [(1, 4), (2, 5)] |
k = [1226800, 926891, 782725, 1023038, 1126293, 692565, 1093034, 937898, 991612, 865649, 990565, 965414]; s = '949248' | k.append(int(s)) | k = [1226800, 926891, 782725, 1023038, 1126293, 692565, 1093034, 937898, 991612, 865649, 990565, 965414, 949248]; s = '949248' |
i = 1; m = ['a', 'a'] | m[i] = '-' | i = 1; m = ['a', '-'] |
i = 3; k = 12; l = [1, 12, 2, 6, 3] | l.append(int(k / i)) | i = 3; k = 12; l = [1, 12, 2, 6, 3, 4] |
c = [2, 1, 3]; i = 0 | g = c[i] | c = [2, 1, 3]; g = 2; i = 0 |
x = 1; z = 3 | x += z | x = 4; z = 3 |
c = 1, [6]; y = [(2, [6, 1]), (2, [1, 6]), (300000, [])] | c = min(y) | c = (2, [1, 6]); y = [(2, [6, 1]), (2, [1, 6]), (300000, [])] |
i = 1; m = 0; y = 0 | m = i - y | i = 1; m = 1; y = 0 |
d = 2; w = 4; x = 1 | w += d * x | d = 2; w = 6; x = 1 |
r = [102, 97, 105] | r.sort() | r = [97, 102, 105] |
i = 27; m = [1, 1, 2, 6, 24, 120, 720, 146326063, 72847302, 602640637, 860734560, 657629300, 440732388, 459042011]; r = 1000000007 | m.append(m[-1] * i % r) | i = 27; m = [1, 1, 2, 6, 24, 120, 720, 146326063, 72847302, 602640637, 860734560, 657629300, 440732388, 459042011, 394134213]; r = 1000000007 |
l = [26]; s = ['1', '91'] | l.append(int(s[1])) | l = [26, 91]; s = ['1', '91'] |
q = 3; z = 1000000000 | z = q | q = 3; z = 3 |
z = 'ozkxyhkcst', | m.append(''.join(z)) | m = ['ozkxyhkcst']; z = ('ozkxyhkcst',) |
o = {'i': 2, 'f': 1, 'a': 1}; r = 'l' | o[r] = 1 | o = {'i': 2, 'f': 1, 'a': 1, 'l': 1}; r = 'l' |
i = ['cdcd']; m = '' | i.append(m) | i = ['cdcd', '']; m = '' |
t = {(0): ['5', '3'], (1): ['7']}; u = 1 | i = t[u] | i = ['7']; t = {0: ['5', '3'], 1: ['7']}; u = 1 |
e = ['h', 'k', 'd', 'c'] | e = e[1:] | e = ['k', 'd', 'c'] |
b = [2, 1, 8, 5]; j = 3; x = 11 | x += b[j] | b = [2, 1, 8, 5]; j = 3; x = 16 |
a = [3, 1, 2]; l = 1 | c = a[l - 1] | a = [3, 1, 2]; c = 3; l = 1 |
a = [4, 2, 6, 1, 10]; d = 2; k = 3; x = 3 | d = a[x] // k | a = [4, 2, 6, 1, 10]; d = 0; k = 3; x = 3 |
i = 5; j = 4; k = ['e', 'd', 'c', 'b', 'a', 'b', 'c', 'd']; s = 5 | k.append(alphabets[s - i + j]) | d = [-8, -7, 2, -6, 5]; i = 5; j = 4; k = ['e', 'd', 'c', 'b', 'a', 'b', 'c', 'd', 5]; s = 5 |
c = 1; j = 8; o = True; r = '1110011011' | o = (c % 2 == 1) ^ bool(int(r[j])) | c = 1; j = 8; o = False; r = '1110011011' |
i = 1 | l[i] = [] | i = 1; l = {1: []} |
a = 1; b = 6; e = 10 | e = b + a | a = 1; b = 6; e = 7 |
a = 'a'; t = {'a': 2, 'b': 2, 'c': 2, 'd': 2, 'e': 3, 'f': 2, 'g': 2, 'h': 2}; u = 3 | t[a] = u - t[a] | a = 'a'; t = {'a': 1, 'b': 2, 'c': 2, 'd': 2, 'e': 3, 'f': 2, 'g': 2, 'h': 2}; u = 3 |
s = ['append', '1'] | f = s[0] | f = 'append'; s = ['append', '1'] |
j = 6; q = 12; x = 4 | j += q // x | j = 9; q = 12; x = 4 |
f = [[3, 4, 8, 12], [2, 6, 7, 16], [1, 10, 11, 15], [5, 9, 13, 14]]; g = [6]; i = 2; j = 1 | g.append(f[j][i]) | f = [[3, 4, 8, 12], [2, 6, 7, 16], [1, 10, 11, 15], [5, 9, 13, 14]]; g = [6, 7]; i = 2; j = 1 |
s = '111111111111111' | s += '1' | s = '1111111111111111' |
c = 7; f = 0; x = [[5, 3], [7]]; y = 1 | c = x[f][y % len(x[f])] | c = 3; f = 0; x = [[5, 3], [7]]; y = 1 |
a = 1; b = 1; c = 1 | c = b ** 2 + a | a = 1; b = 1; c = 2 |
o = 66 | o += 1 | o = 67 |
a = 1; b = 1; c = 3; v = [1, 1, 3] | a, b, c = v[0], v[1], v[2] | a = 1; b = 1; c = 3; v = [1, 1, 3] |
k = 3; l = [10, 20, 30, 100, 200, 300, 1000]; n = 4; z = 300 | z = l[n + k - 1] | k = 3; l = [10, 20, 30, 100, 200, 300, 1000]; n = 4; z = 1000 |
g = 2; h = 16; l = [9, 7, 5, 3, 1] | h += l[g] * (iteration + 1) | d = -39; g = 2; h = -174; l = [9, 7, 5, 3, 1] |
l = [1, 2, 3, 4, 10, 20, 30, 40]; m = '100\n' | l.append(int(m.strip())) | l = [1, 2, 3, 4, 10, 20, 30, 40, 100]; m = '100\n' |
c = 12; g = ['POTATO', 'CHIPS', '30'] | c = int(g[-1]) | c = 30; g = ['POTATO', 'CHIPS', '30'] |
a = 3; i = 3; l = [3, 4, 7, 5, 6, 2] | a = l[i] | a = 5; i = 3; l = [3, 4, 7, 5, 6, 2] |
o = [(-1, -1), (-1, 0), (-1, 1), (0, -1), (0, 1)]; w = 1, -1 | o.append(w) | o = [(-1, -1), (-1, 0), (-1, 1), (0, -1), (0, 1), (1, -1)]; w = (1, -1) |
a = 1; b = 3 | a, b = b, a | a = 3; b = 1 |
a = 'abc'; i = 0; j = 4; s = 'abcd' | a = ''.join(sorted(s[i:j])) | a = 'abcd'; i = 0; j = 4; s = 'abcd' |
k = 2; n = 8; p = 6 | p = (p + k) % n | k = 2; n = 8; p = 0 |
b = [1, 4, 6, 4, 1]; i = 1; y = [1, 4, 6, 4, 1] | b += [(y[i - 1] + y[i]) % 10 ** 9] | b = [1, 4, 6, 4, 1, 5]; i = 1; y = [1, 4, 6, 4, 1] |
a = ['d']; m = 'c' | m = min(a) | a = ['d']; m = 'd' |
f = [1, 1]; x = 2; y = 3 | f.append(abs(int(x) - int(y))) | f = [1, 1, 1]; x = 2; y = 3 |
n = '2'; u = ['5', '4', '1'] | u = u + [n] | n = '2'; u = ['5', '4', '1', '2'] |
z = [8, 1] | t, d = z[0], z[1] | d = 1; t = 8; z = [8, 1] |
h = 'eg'; i = 'g' | h += i | h = 'egg'; i = 'g' |
i = 4; l = 2; m = ['i', 'f', 'a', 'i', 'l', 'u', 'h', 'k', 'q', 'q']; x = ['l'] | x = m[i:i + l] | i = 4; l = 2; m = ['i', 'f', 'a', 'i', 'l', 'u', 'h', 'k', 'q', 'q']; x = ['l', 'u'] |
w = 2; x = -4 | w = max(1, abs(x)) | w = 4; x = -4 |
b = [1, 4, 9, 16, 25, 36, 49, 64, 81]; x = 100 | b.append(x) | b = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]; x = 100 |
v = '3' | v = int(v) | v = 3 |
l = [[2, 3], [4, -1], [5, -1], [6, -1], [7, 8], [-1, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]]; r = '9'; x = 5 | l[x][1] = int(r) | l = [[2, 3], [4, -1], [5, -1], [6, -1], [7, 8], [-1, 9], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]]; r = '9'; x = 5 |
c = {'b', 'd', 'a', 'e', 'c'}; n = {'b', 'd', 'a', 'e', 'c'} | c = c & n | c = {'c', 'd', 'b', 'a', 'e'}; n = {'c', 'd', 'b', 'a', 'e'} |
n = ['D', 1, 0]; x = ['D', 1, 0]; y = [['D', 1, 0]] | x[1] += 1 | n = ['D', 1, 0]; x = ['D', 2, 0]; y = [['D', 1, 0]] |
c = [[1, 20]]; l = [] | c = [list(k) for k in l] | c = []; l = [] |
b = 433494437; o = 701408733 | b = o | b = 701408733; o = 701408733 |
n = 10 | i = n - 2 | i = 8; n = 10 |
b = ['0', 'ij', True]; y = [['0', 'ab', True], ['6', 'cd', True], ['0', 'ef', True], ['6', 'cd', True], ['0', 'ef', True], ['6', 'gh', True]] | y.append(b) | b = ['0', 'ij', True]; y = [['0', 'ab', True], ['6', 'cd', True], ['0', 'ef', True], ['6', 'cd', True], ['0', 'ef', True], ['6', 'gh', True], ['0', 'ij', True]] |
b = 1; g = 1000000000000 | l += g * b | b = 1; g = 1000000000000; l = 999999999970 |
r = 6; x = 11; y = 14 | r = x ^ y | r = 5; x = 11; y = 14 |
c = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o']; l = 15 | c.append(chr(ord('a') + l)) | c = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p']; l = 15 |
j = '100010001'; y = True; z = 4 | j = ('', j[z:])[y] | j = '10001'; y = True; z = 4 |
i = 6; s = 'abracadabra'; t = 'abrack' | t += s[i] | i = 6; s = 'abracadabra'; t = 'abrackd' |
i = 'd'; t = ['c', 'd', 'c'] | t.append(i) | i = 'd'; t = ['c', 'd', 'c', 'd'] |
v = '1111111111111111111111' | v += '1' | v = '11111111111111111111111' |
g = 264; s = {33, 66, 132, -1188, 1083, 873, 1260, 1581, -786, -594, -1713, -1293, - 939, 630, -297, 315, -1572} | s.add(g) | g = 264; s = {33, 66, 132, -1572, 264, 873, 1260, 1581, -786, -594, -1713, 315, -1293, -939, 630, -297, 1083, -1188} |
c = 24 | v = c // 2 | c = 24; v = 12 |
z = '2 4 11 12' | m = z.split() | m = ['2', '4', '11', '12']; z = '2 4 11 12' |
h = 5; o = 6.871947673599998e-26; v = 3.435973836799999e-25 | v -= h * o | h = 5; o = 6.871947673599998e-26; v = 0.0 |
d = 2; t = 4; v = [5, 6] | t, d = v[0], v[1] | d = 6; t = 5; v = [5, 6] |
j = 4; k = [1, 1] | j = len(k) | j = 2; k = [1, 1] |
k = 'BANANA FRIES'; l = ['POTATO', 'CHIPS', '30'] | k = ' '.join(l[:-1]) | k = 'POTATO CHIPS'; l = ['POTATO', 'CHIPS', '30'] |
k = 'b', 'e'; p = [('b', 'a'), ('b', 'f')] | p.append(k) | k = ('b', 'e'); p = [('b', 'a'), ('b', 'f'), ('b', 'e')] |
i = '{'; o = ['{', '[', '('] | o.append(i) | i = '{'; o = ['{', '[', '(', '{'] |
j = '16'; z = '15' | z = j | j = '16'; z = '16' |
i = 2; l = 6; o = [6, 5, 4] | l = o[i - 1] | i = 2; l = 5; o = [6, 5, 4] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.