start stringlengths 5 368 | code stringlengths 5 143 | end stringlengths 5 527 |
|---|---|---|
j = 'b'; s = 'bebeeeb' | s += j | j = 'b'; s = 'bebeeebb' |
e = {'me': 1, 'grand': 1, 'today': 1, 'night': 1}; i = 'grand' | e.pop(i) | e = {'me': 1, 'today': 1, 'night': 1}; i = 'grand' |
q = 5 | q += 1 | q = 6 |
c = 'd'; j = {'c': 4, 'd': 3} | j[c] = j[c] + 1 | c = 'd'; j = {'c': 4, 'd': 4} |
a = 1; b = 2; i = 1; n = 3; s = {4} | s.add(i * a + (n - i - 1) * b) | a = 1; b = 2; i = 1; n = 3; s = {3, 4} |
n = 2; p = 1; w = ['1', '0', '3'] | p = (int(w[1]) ^ lastAns) % n | n = 2; p = 1; v = 19; w = ['1', '0', '3'] |
a = 4 | a = a // 2 | a = 2 |
f = 'some'; r = 1; t = {'ive': 0, 'got': 0, 'a': 1, 'lovely': 1, 'bunch': 1, 'of': 1, 'coconuts': 1} | r = t.get(f, 0) | f = 'some'; r = 0; t = {'ive': 0, 'got': 0, 'a': 1, 'lovely': 1, 'bunch': 1, 'of': 1, 'coconuts': 1} |
l = ['pop'] | w = l[0] | l = ['pop']; w = 'pop' |
d = 59; r = 1 | d = d + r | d = 60; r = 1 |
b = ['161', '182', '161', '154', '176', '170', '167', '171', '170', '174']; c = [161, 182, 161, 154]; i = 4 | c.append(int(b[i])) | b = ['161', '182', '161', '154', '176', '170', '167', '171', '170', '174']; c = [161, 182, 161, 154, 176]; i = 4 |
i = 1; k = 3; x = [1, 1, 2, 1] | b = x.count(k - i) | b = 1; i = 1; k = 3; x = [1, 1, 2, 1] |
t = 1; x = 3; y = 3 | t = abs(y - x) | t = 0; x = 3; y = 3 |
h = False; w = False | w = h = False | h = False; w = False |
i = 44; t = [4, 16, 36, 64, 100, 144, 196, 256, 324, 400, 676, 784, 900, 1024, 1156, 1296, 1444, 1600, 1764] | t.append(i * i) | i = 44; t = [4, 16, 36, 64, 100, 144, 196, 256, 324, 400, 676, 784, 900, 1024, 1156, 1296, 1444, 1600, 1764, 1936] |
n = '148' | m = sum([int(c) for c in n]) | m = 13; n = '148' |
i = 1024 | i = i * 2 | i = 2048 |
i = 6; m = {(0): 2, (6): 1} | m[i] += 1 | i = 6; m = {0: 2, 6: 2} |
i = 9; j = [1, 2, 3, 4, 5, 4, 3, 2, 1, 3, 4]; k = [2, 2, 2, 2, 1, 0] | k[j[i] - 1] += 1 | i = 9; j = [1, 2, 3, 4, 5, 4, 3, 2, 1, 3, 4]; k = [2, 2, 3, 2, 1, 0] |
b = 4; i = 2 | b = i + 1 | b = 3; i = 2 |
e = 2; k = ['B', '_', 'R', 'R', 'B', 'R'] | e = k.count('_') | e = 1; k = ['B', '_', 'R', 'R', 'B', 'R'] |
i = 4; r = 9 | i = r % 8 | i = 1; r = 9 |
a = 17; d = 3; m = 6 | a = max(a - d, m) | a = 14; d = 3; m = 6 |
s = 6144; x = [3, 6, 12, 24, 48, 96, 192, 384, 768, 1536, 3072] | x.append(s) | s = 6144; x = [3, 6, 12, 24, 48, 96, 192, 384, 768, 1536, 3072, 6144] |
j = 85.0; x = 78.0 | x += j | j = 85.0; x = 163.0 |
i = 0; l = ['because', 'can', 'do', 'must', 'we', 'what']; t = 'becausewecan'; v = 0 | v = t.find(l[i]) | i = 0; l = ['because', 'can', 'do', 'must', 'we', 'what']; t = 'becausewecan'; v = 0 |
m = [-1, -1, 0, 6]; s = 2 | m.pop(s) | m = [-1, -1, 6]; s = 2 |
c = [0] | y = c.pop() | c = []; y = 0 |
d = 'b'; e = 'a'; w = {'e', 'f', 'b', 'a'}; y = ['e', 'b'] | y = list(w.difference({d, e})) | d = 'b'; e = 'a'; w = {'a', 'e', 'f', 'b'}; y = ['e', 'f'] |
c = [2, 5, 6]; j = 1; k = 2 | k = c[j] | c = [2, 5, 6]; j = 1; k = 5 |
g = ['0', '1', '0', '0', '1', '0', '1', '0', '1', '0']; i = 0 | g[i + 2] = 1 | g = ['0', '1', 1, '0', '1', '0', '1', '0', '1', '0']; i = 0 |
j = 2; o = [0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0] | o[j] += 1 | j = 2; o = [0, 1, 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0] |
b = 0; e = 2; s = 0 | i = 1 if b == s else e | b = 0; e = 2; i = 1; s = 0 |
a = 1; m = '2' | a = int(m) | a = 2; m = '2' |
l = [[0, 0, 0], [0, 0, 1], [0, 1, 0], [0, 1, 2], [0, 2, 1], [1, 0, 0], [1, 0, 2], [1, 1, 1], [1, 1, 2]]; p = [1, 2, 0] | l.append(p) | l = [[0, 0, 0], [0, 0, 1], [0, 1, 0], [0, 1, 2], [0, 2, 1], [1, 0, 0], [1, 0, 2], [1, 1, 1], [1, 1, 2], [1, 2, 0]]; p = [1, 2, 0] |
g = 'set_1'; r = 1 | b[r] = g | b = {1: 'set_1'}; g = 'set_1'; r = 1 |
i = 2; k = {(0): True, (1): True} | k[i] = True | i = 2; k = {0: True, 1: True, 2: True} |
c = [0, 1, 6, 7, 4, 5, 0, 7, 6, 5, 4, 0, 1]; i = 12; j = 14 | c.append(j ^ i) | c = [0, 1, 6, 7, 4, 5, 0, 7, 6, 5, 4, 0, 1, 2]; i = 12; j = 14 |
v = '2' | d.append(int(v)) | d = [2]; v = '2' |
x = [['+', '-', '+', '+', '+', '+'], ['+', '-', '+', '+', '+', '+'], ['+', '-', '+', '+', '+', '+'], ['+', '+', '-', '-', '+', '+'], ['+', '+', '+', '+', '+', '+'], ['+', '+', '+', '+', '+', '+']] | o = type(x) | o = <class 'list'>; x = [['+', '-', '+', '+', '+', '+'], ['+', '-', '+', '+', '+', '+'], ['+', '-', '+', '+', '+', '+'], ['+', '+', '-', '-', '+', '+'], ['+', '+', '+', '+', '+', '+'], ['+', '+', '+', '+', '+', '+']] |
s = [2, 4, 2]; x = 6 | s.append(x) | s = [2, 4, 2, 6]; x = 6 |
i = 5 | m = [0] * i | i = 5; m = [0, 0, 0, 0, 0] |
c = 1; u = 1; w = [1, None, None, None] | w[c] = u | c = 1; u = 1; w = [1, 1, None, None] |
a = 0; u = [2, 0, 0, 0, 1, 0, 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, 0] | u[a] = u[a] + 1 | a = 0; u = [3, 0, 0, 0, 1, 0, 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, 0] |
j = 'abcd'; y = {'a': 1, 'ab': 1, 'abc': 1} | y[j] = 1 | j = 'abcd'; y = {'a': 1, 'ab': 1, 'abc': 1, 'abcd': 1} |
h = 'if'; i = 1; j = 3; u = 'ifailuhkqq' | h = u[i:i + j] | h = 'fai'; i = 1; j = 3; u = 'ifailuhkqq' |
m = 2; q = [1, 1, 2, 3, 3]; v = 2 | q[v + 1] = m | m = 2; q = [1, 1, 2, 2, 3]; v = 2 |
a = ['1', '1']; l = 2; m = -1 | a.append(str(max(l, m) + 1)) | a = ['1', '1', '3']; l = 2; m = -1 |
i = 4; p = [0, 0, 0, 0, 0, 1, 0] | p[i] = 1 | i = 4; p = [0, 0, 0, 0, 1, 1, 0] |
w = '^[a-z]*[Aa][a-z]*[Bb][a-z]*[Cc][a-z]*' | w += '$' | w = '^[a-z]*[Aa][a-z]*[Bb][a-z]*[Cc][a-z]*$' |
a = 3; b = 7; l = [4, 3] | l = [a, b] | a = 3; b = 7; l = [3, 7] |
f = '2'; s = [(0, 'ab'), (6, 'cd'), (0, 'ef'), (6, 'gh'), (5, 'question'), (1, 'or'), (2, 'not'), (4, 'is')]; w = 'to' | s.append((int(f), w)) | f = '2'; s = [(0, 'ab'), (6, 'cd'), (0, 'ef'), (6, 'gh'), (5, 'question'), (1, 'or'), (2, 'not'), (4, 'is'), (2, 'to')]; w = 'to' |
l = {(2): ['e', 'a', 'd', 'b', 'c'], (1): ['f', 'g', 'h', 'i']} | t = list(l.keys()) | l = {2: ['e', 'a', 'd', 'b', 'c'], 1: ['f', 'g', 'h', 'i']}; t = [2, 1] |
s = 'aba' | z = len(s) | s = 'aba'; z = 3 |
j = '11010000001001110001101101001' | j += str('1') | j = '110100000010011100011011010011' |
e = '1'; o = '01000000100111000110110100110' | o = o + e | e = '1'; o = '010000001001110001101101001101' |
i = 0; n = [0, 1, 2, 4, 6, 5, 3] | t = n[i] | i = 0; n = [0, 1, 2, 4, 6, 5, 3]; t = 0 |
x = 100; y = 0 | y = x | x = 100; y = 100 |
c = ['{', '[', '(']; u = '{' | u = c.pop() | c = ['{', '[']; u = '(' |
i = 4; j = '-'; k = [['-', '-'], [], [], [], [], [], ['-', '-'], [], [], [], [], [], [], [], [], [], [], [], [], []] | k[i].append(j) | i = 4; j = '-'; k = [['-', '-'], [], [], [], ['-'], [], ['-', '-'], [], [], [], [], [], [], [], [], [], [], [], [], []] |
u = 4 | c += u | c = 44; u = 4 |
i = [3, 2, 0]; n = 5 | i.append(n) | i = [3, 2, 0, 5]; n = 5 |
f = 9; k = ['k']; s = 'ifailuhkqq'; x = 8 | k = sorted(s[x:f]) | f = 9; k = ['q']; s = 'ifailuhkqq'; x = 8 |
q = [1, 3, 5, 7, 9] | c = sorted(q) | c = [1, 3, 5, 7, 9]; q = [1, 3, 5, 7, 9] |
d = 1; j = [4, 5, 6]; r = 11 | r += j[d] | d = 1; j = [4, 5, 6]; r = 16 |
m = [['-'], [], [], [], [], [], ['-'], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []]; s = '-'; x = 0 | m[x].append(s) | m = [['-', '-'], [], [], [], [], [], ['-'], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []]; s = '-'; x = 0 |
b = 1.7999999999999998e-35 | b = b / 10 | b = 1.7999999999999998e-36 |
w = 3 | w += 1 | w = 4 |
h = ['10', '50']; s = 18 | s = int(h[0]) | h = ['10', '50']; s = 10 |
t = 10 | w = [0] * t | t = 10; w = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] |
l = [1, 2]; z = 3 | l.append(z) | l = [1, 2, 3]; z = 3 |
c = {'w'}; d = 'e' | c.add(d.lower()) | c = {'w', 'e'}; d = 'e' |
i = 2; j = 4; s = 'abcd'; x = 'c' | x = ''.join(sorted(s[i:j])) | i = 2; j = 4; s = 'abcd'; x = 'cd' |
r = ['a'] | r = ''.join(r) | r = 'a' |
n = '10' | n = int(n) | n = 10 |
p = 100; s = 81; x = 2 | s = s * x % p | p = 100; s = 62; x = 2 |
a = 2; q = 1 | q += a | a = 2; q = 3 |
j = [2, 5, 4, 5, 2]; x = 4; y = 1 | j[x] = j[y] | j = [2, 5, 4, 5, 5]; x = 4; y = 1 |
i = 2; n = [2, 1]; p = 0; y = [2, 1] | n[p] = [i, y.index(i)] | i = 2; n = [[2, 0], 1]; p = 0; y = [2, 1] |
a = 6; f = 2 | a += f | a = 8; f = 2 |
l = 0; m = 1; r = 1 | m = (l + (r - 1)) // 2 | l = 0; m = 0; r = 1 |
t = ['u', 'h', 'k'] | t.sort() | t = ['h', 'k', 'u'] |
h = 7; n = 30 | n *= h | h = 7; n = 210 |
k = 'a'; n = ['a', 'b'] | k = ''.join(n) | k = 'ab'; n = ['a', 'b'] |
p = 9; s = 1000000007 | p = p * p % s | p = 81; s = 1000000007 |
d = {(4): 1, (3): 2, (5): 3, (1): 4, (2): 5}; h = [1, 3, 5, 4]; i = 4 | h.append(d[d[i + 1]]) | d = {4: 1, 3: 2, 5: 3, 1: 4, 2: 5}; h = [1, 3, 5, 4, 2]; i = 4 |
b = 1.88079096131566e-36 | b /= 2 | b = 9.4039548065783e-37 |
k = '2'; m = '18'; n = '3' | n, k, m = int(n), int(k), int(m) | k = 2; m = 18; n = 3 |
b = [1, 2] | c = tuple(b) | b = [1, 2]; c = (1, 2) |
f = 4; t = 4 | f = t + 1 | f = 5; t = 4 |
i = 3; m = [-7330761, -6461594, -3916237, -3620601, -357920, -520, -470, -20, 30, 266854, 6246457, 7374819]; t = 2545357 | t = abs(m[i] - m[i - 1]) | i = 3; m = [-7330761, -6461594, -3916237, -3620601, -357920, -520, -470, -20, 30, 266854, 6246457, 7374819]; t = 295636 |
a = [6, 5, 4]; c = 4 | c = len(a) | a = [6, 5, 4]; c = 3 |
l = [[20, 0], [7, 1], [8, 2], [2, 3], [5, 4]] | l.sort() | l = [[2, 3], [5, 4], [7, 1], [8, 2], [20, 0]] |
l = 2; n = '3' | l = len(n) | l = 1; n = '3' |
g = {}; p = [1, 5] | g[1] = p[1] | g = {1: 5}; p = [1, 5] |
g = 20; p = [0, 6, 8, 10, 11, 15, 16, 20, 20, 20, 20] | p.append(g) | g = 20; p = [0, 6, 8, 10, 11, 15, 16, 20, 20, 20, 20, 20] |
c = [1, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4]; i = 0; k = 6 | c[i + k] += c[i] | c = [1, 0, 1, 1, 1, 2, 3, 2, 3, 3, 4]; i = 0; k = 6 |
l = [4, 1, 2] | l.sort() | l = [1, 2, 4] |
p = 6 | p += 1 | p = 7 |
i = 4; t = [4, 3, 5, 1, 2]; x = 1 | x = t[i] | i = 4; t = [4, 3, 5, 1, 2]; x = 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.