start
stringlengths 5
368
| code
stringlengths 5
143
| end
stringlengths 5
527
|
|---|---|---|
i = 0; s = 'BANANA'
|
a += len(s) - i
|
a = -30; i = 0; s = 'BANANA'
|
b = [5, 7, 11, 10, 5, 8]
|
b.sort()
|
b = [5, 5, 7, 8, 10, 11]
|
l = [3, 5]; m = 6
|
m = l[0]
|
l = [3, 5]; m = 3
|
i = 5; y = {(1): False, (2): False, (3): False, (4): False}
|
y[i] = False
|
i = 5; y = {1: False, 2: False, 3: False, 4: False, 5: False}
|
t = 2; x = 1; y = 2
|
t = abs(x - y)
|
t = 1; x = 1; y = 2
|
i = 1; y = ['2', 'not']
|
i = int(y[0])
|
i = 2; y = ['2', 'not']
|
d = 9
|
d += 1
|
d = 10
|
x = 10
|
x //= 2
|
x = 5
|
i = 0; l = [2, 1]
|
m[l[i]] = i
|
i = 0; l = [2, 1]; m = {2: 0}
|
f = 42
|
x.insert(0, f)
|
f = 42; x = [42]
|
d = 'babab'; i = 3; y = 'b'
|
y = d[i]
|
d = 'babab'; i = 3; y = 'a'
|
y = []
|
g = y.append
|
g = <built-in method append of list object at 0x7f1c77af6050>; y = []
|
a = [[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]]; s = 3; x = 1; y = 3
|
s = a[y][x] + a[y][x + 1] + a[y][x + 2] + a[y + 1][x + 1] + a[y + 2][x] + a[ y + 2][x + 1] + a[y + 2][x + 2]
|
a = [[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]]; s = 9; x = 1; y = 3
|
p = 1; v = 2; x = 1
|
v += x % 10 * 2 ** p
|
p = 1; v = 4; x = 1
|
i = 'e'; y = {'a': 1, 'b': 1, 'c': 1, 'd': 2, 'e': 2, 'f': 2, 'g': 2, 'h': 2}
|
y[i] = y.setdefault(i, 0) + 1
|
i = 'e'; y = {'a': 1, 'b': 1, 'c': 1, 'd': 2, 'e': 3, 'f': 2, 'g': 2, 'h': 2}
|
r = 206; x = 189
|
x = r
|
r = 206; x = 206
|
a = ['14', 'o16']; i = 14
|
a.append(str(hex(i))[2:].upper())
|
a = ['14', 'o16', 'E']; i = 14
|
w = [1, 3, 2]; y = 1
|
w[y - 1], w[y], w[y + 1] = w[y + 1], w[y - 1], w[y]
|
w = [2, 1, 3]; y = 1
|
e = 'In the third category he included tho'; k = 37; x = ( 'In the third category he included those Brothers..., breathless from his gallop and his excitement. ' )
|
e += x[k]
|
e = 'In the third category he included thos'; k = 37; x = 'In the third category he included those Brothers..., breathless from his gallop and his excitement. '
|
j = 3; z = [[None, None, None, None, None, None], [0, 0, 0, None, None, None]]
|
z[1][j] = 0
|
j = 3; z = [[None, None, None, None, None, None], [0, 0, 0, 0, None, None]]
|
c = [1]; n = '2'
|
c += [int(n)]
|
c = [1, 2]; n = '2'
|
c = [0, 0, 0, 0, 0, 0, 0, 0]
|
c[0] = 1
|
c = [1, 0, 0, 0, 0, 0, 0, 0]
|
c = ')'; i = 'C, K)'
|
i = i.replace(c, '')
|
c = ')'; i = 'C, K'
|
r = [1, 1, 1, 0, 0, 1, 1, 0, 1, 1]
|
y = r[-1]
|
r = [1, 1, 1, 0, 0, 1, 1, 0, 1, 1]; y = 1
|
e = [3, 4, 2, 3, 6, 1, 3, 6]; k = 3; o = 3
|
e.append(o * k)
|
e = [3, 4, 2, 3, 6, 1, 3, 6, 9]; k = 3; o = 3
|
e = 'x'; x = {'x': -1, 'b': 1, 'a': -1}
|
x[e] += 1
|
e = 'x'; x = {'x': 0, 'b': 1, 'a': -1}
|
i = 1; r = [1, '1', '2', '2', '3', '4', '', '']
|
r[i] = int(r[i])
|
i = 1; r = [1, 1, '2', '2', '3', '4', '', '']
|
y = '10 10\n'
|
y = y.strip()
|
y = '10 10'
|
f = [1, 1, 1, 1, 1]; y = 1
|
f.append(y)
|
f = [1, 1, 1, 1, 1, 1]; y = 1
|
l = 1; p = 1; r = 2
|
r = l + p + 1
|
l = 1; p = 1; r = 3
|
i = 4; l = [3, 2, 1, 3, 4]
|
i = l.pop()
|
i = 4; l = [3, 2, 1, 3]
|
i = 4; j = [3]; l = [4, 5, 3, 7, 2]
|
j.append(l[i])
|
i = 4; j = [3, 2]; l = [4, 5, 3, 7, 2]
|
i = 2; l = 5; p = [1, 2, 100]
|
l = max(p[i], l)
|
i = 2; l = 100; p = [1, 2, 100]
|
h = ['b', 'c', 'x', 'z']; i = 0; x = 97
|
x = ord(h[i])
|
h = ['b', 'c', 'x', 'z']; i = 0; x = 98
|
j = [1, 1]; n = [1, 2, 1]
|
j = n
|
j = [1, 2, 1]; n = [1, 2, 1]
|
a = ['5', 'o5', '5', '101']
|
a = list()
|
a = []
|
c = 0; d = 3; s = [-1, 24, -1, 20]; y = 3
|
s[y - 1] = c + d
|
c = 0; d = 3; s = [-1, 24, 3, 20]; y = 3
|
p = 'b'; r = {1, 2, 3}; y = 2
|
r.add((ord(p) - 96) * y)
|
p = 'b'; r = {1, 2, 3, 4}; y = 2
|
i = 2; t = [4, 5]; v = [[11, 2, 4], [4, 5, 6], [10, 8, -12]]; x = 3
|
t.append(v[i][x - 1 - i])
|
i = 2; t = [4, 5, 10]; v = [[11, 2, 4], [4, 5, 6], [10, 8, -12]]; x = 3
|
e = 'aab'; i = 2; n = 'a'
|
n = e[:i]
|
e = 'aab'; i = 2; n = 'aa'
|
c = 1; i = 3; j = [([], -1), ([2, 3], 1), ([1, 3], 1), ([1, 2], -1)]
|
j[i] = j[i][0], c
|
c = 1; i = 3; j = [([], -1), ([2, 3], 1), ([1, 3], 1), ([1, 2], 1)]
|
i = 2
|
i = i - 1
|
i = 1
|
i = 2; j = 220
|
j += i
|
i = 2; j = 222
|
i = 1; w = [1, 1, 1, 1]; x = 4
|
w[i - 1] = x
|
i = 1; w = [4, 1, 1, 1]; x = 4
|
a = 'B'; k = ['B']
|
k.append(a)
|
a = 'B'; k = ['B', 'B']
|
a = 1; b = 2; d = 4; i = 4; j = 5
|
i, j = a + (j - b), b + (d - (i - a))
|
a = 1; b = 2; d = 4; i = 4; j = 3
|
l = ['6', 'cd']; t = 0
|
t = int(l[0])
|
l = ['6', 'cd']; t = 6
|
b = {2, 3, 4, 5, 6, 7, 8, 9, 10, -1}; k = 11
|
b.add(k)
|
b = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -1}; k = 11
|
g = ['cab']
|
s = g[0] if g else None
|
g = ['cab']; s = 'cab'
|
n = 3; u = 3
|
u += n
|
n = 3; u = 6
|
f = 1
|
f += 1
|
f = 2
|
f = 4; t = 1
|
f += t
|
f = 5; t = 1
|
j = 174
|
j += i
|
i = -30; j = 144
|
b = [1, 1, 1]; m = {(1): [2, 2, 2, 1, 1], (2): [2, 1, 1, 1]}; x = 1
|
b = m[x][:]
|
b = [2, 2, 2, 1, 1]; m = {1: [2, 2, 2, 1, 1], 2: [2, 1, 1, 1]}; x = 1
|
r = 'Krishna'; z = ['Arjun', '70', '98', '63']
|
r = z[0]
|
r = 'Arjun'; z = ['Arjun', '70', '98', '63']
|
i = 2; j = 3; r = []; s = 'ifailuhkqq'
|
r = list(s[i:j])
|
i = 2; j = 3; r = ['a']; s = 'ifailuhkqq'
|
b = '11111111111111111111111111111011'
|
b = b + '1'
|
b = '111111111111111111111111111110111'
|
e = [1, 20]; n = 97
|
n = e[1]
|
e = [1, 20]; n = 20
|
b = 0; z = [0, 3]
|
b = z.count(0)
|
b = 1; z = [0, 3]
|
a = [-11.349999999999994, -11.349999999999994, 7.650000000000006, 9.650000000000006, 2.6500000000000057, 2.6500000000000057]; c = [76, 76, 95, 96, 79, 74, 97, 97, 90, 90, 78, 91, 76, 90, 95, 95, 75, 100, 87, 90]; i = 10; s = 87.35
|
a.append(c[i] - s)
|
a = [-11.349999999999994, -11.349999999999994, 7.650000000000006, 9.650000000000006, 2.6500000000000057, 2.6500000000000057, -9.349999999999994]; c = [76, 76, 95, 96, 79, 74, 97, 97, 90, 90, 78, 91, 76, 90, 95, 95, 75, 100, 87, 90]; i = 10; s = 87.35
|
b = {(139638914197856): [['*', '.', 'M']], (139638914216736): ['*', '.', 'M'], (139638914198496): [['*', '.', 'M']]}; d = 139638914216976; n = []; y = [['*', '.', 'M']]
|
y = b.get(d, n)
|
b = {139638914197856: [['*', '.', 'M']], 139638914216736: ['*', '.', 'M'], 139638914198496: [['*', '.', 'M']]}; d = 139638914216976; n = []; y = []
|
a = [0, 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, 0, 0]; i = 2; k = [1, 2, 3, 4, 4]
|
a[k[i]] += 1
|
a = [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, 0]; i = 2; k = [1, 2, 3, 4, 4]
|
g = 5; i = 8
|
g = i
|
g = 8; i = 8
|
c = '10'
|
c += '0'
|
c = '100'
|
f = 87; k = 56.42857142857143
|
f = int(k)
|
f = 56; k = 56.42857142857143
|
g = ['98', '95', '97']; z = 34007
|
z += int(g[1]) ** 2
|
g = ['98', '95', '97']; z = 43032
|
a = 1; b = 0; i = 4; t = 8
|
t = a * (i - b + 1)
|
a = 1; b = 0; i = 4; t = 5
|
a = 2; b = 1; c = 1; e = 3, 1, 2
|
a, b, c = e
|
a = 3; b = 1; c = 2; e = (3, 1, 2)
|
r = 1
|
w = max(w, r)
|
r = 1; w = 50
|
g = ['2', '3', '4']; v = 2
|
g = [None] * v
|
g = [None, None]; v = 2
|
q = 2; x = 2
|
q *= x + 1
|
q = 6; x = 2
|
i = 10; n = 10; q = 10
|
n = i = q = 0
|
i = 0; n = 0; q = 0
|
c = [1, 3, 5, 7, 9]
|
n = len(c)
|
c = [1, 3, 5, 7, 9]; n = 5
|
a = 5; d = 0; m = 9
|
d += m // a
|
a = 5; d = 1; m = 9
|
b = '('; y = ['{', '{', '[', '[']
|
b = y[-1]
|
b = '['; y = ['{', '{', '[', '[']
|
e = 7; i = 2; j = 1; t = [(1, 2, 3, 4), (1, 2, 4, 3), (1, 3, 2, 4), (1, 3, 4, 2), (4, 2, 3, 1), (4, 3, 1, 2), (4, 3, 2, 1)]
|
e = t[i][j] ^ t[i][j - 1]
|
e = 2; i = 2; j = 1; t = [(1, 2, 3, 4), (1, 2, 4, 3), (1, 3, 2, 4), (1, 3, 4, 2), (4, 2, 3, 1), (4, 3, 1, 2), (4, 3, 2, 1)]
|
a = 6; b = 7; c = 5; p = True
|
p = a <= c and b >= c
|
a = 6; b = 7; c = 5; p = False
|
a = [9, 90, 99, 900, 909, 990, 999, 9000, 990099, 990900, 990909, 990990, 990999, 999000, 999009, 999090]; e = 59
|
a.append(int(bin(e)[2:]) * 9)
|
a = [9, 90, 99, 900, 909, 990, 999, 9000, 990099, 990900, 990909, 990990, 990999, 999000, 999009, 999090, 999099]; e = 59
|
a = [[0], [1], [1, 1], [1, 12, 66, 66, 12, 1], [1, 13, 78, 78, 13, 1], [1, 14, 91, 91, 14, 1]]; m = [1, 15, 105, 455, 1365, 3003, 5005, 6435, 6435, 5005, 3003, 1365, 455, 105, 15, 1]
|
a.append(m)
|
a = [[0], [1], [1, 1], [1, 12, 66, 66, 12, 1], [1, 13, 78, 78, 13, 1], [1, 14, 91, 91, 14, 1], [1, 15, 105, 455, 1365, 3003, 5005, 6435, 6435, 5005, 3003, 1365, 455, 105, 15, 1]]; m = [1, 15, 105, 455, 1365, 3003, 5005, 6435, 6435, 5005, 3003, 1365, 455, 105, 15, 1]
|
i = 0; s = ['b', 'b']
|
del s[i]
|
i = 0; s = ['b']
|
m = '\n'; n = [5, 4, 3, 2]
|
n = [int(val) for val in m.split()]
|
m = '\n'; n = []
|
y = 4
|
y = y + 1
|
y = 5
|
i = 4; j = 0; k = 3
|
j = min(i, k)
|
i = 4; j = 3; k = 3
|
b = '111111111111111000011101101111'
|
b += '1'
|
b = '1111111111111110000111011011111'
|
i = 0; j = 3; s = 'abcd'; u = 'a', 'b', 'c'
|
u = tuple(sorted(s[i:j + 1]))
|
i = 0; j = 3; s = 'abcd'; u = ('a', 'b', 'c', 'd')
|
e = 8
|
z = [1] * e
|
e = 8; z = [1, 1, 1, 1, 1, 1, 1, 1]
|
v = '1000000001 1000000002 1000000003 1000000004 1000000005'
|
b = v.split(' ')
|
b = ['1000000001', '1000000002', '1000000003', '1000000004', '1000000005']; v = '1000000001 1000000002 1000000003 1000000004 1000000005'
|
m = ['a', 'a']; w = 'ba'
|
w = ''.join(m)
|
m = ['a', 'a']; w = 'aa'
|
i = 1; l = [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, 0, 0, 0, 0]
|
l[i] += 1
|
i = 1; l = [0, 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, 0, 0, 0]
|
i = 3; j = 0; p = [4, 5, 4]; x = [21, 28, 26, 5]
|
p.append(bin(x[i] | x[j]).count('1'))
|
i = 3; j = 0; p = [4, 5, 4, 3]; x = [21, 28, 26, 5]
|
a = 1; b = 2; d = 4; i = 1; j = 6
|
i, j = a + (j - b), b + (d - (i - a))
|
a = 1; b = 2; d = 4; i = 5; j = 6
|
b = ['i', 'if', 'ifa', 'ifai', 'ifail', 'ifailu', 'ifailuh', 'a', 'ai', 'ail', 'ailu', 'ailuh', 'ailuhk']; x = 'ailuhkq'
|
b.append(x)
|
b = ['i', 'if', 'ifa', 'ifai', 'ifail', 'ifailu', 'ifailuh', 'a', 'ai', 'ail', 'ailu', 'ailuh', 'ailuhk', 'ailuhkq']; x = 'ailuhkq'
|
m = 3; r = 10
|
r = (m - 1) * m // 2
|
m = 3; r = 3
|
u = 1; v = 22
|
u = (u + v) % 1000000007
|
u = 23; v = 22
|
g = [10, 20, 30, 100, 200, 300, 1000]; i = 3; r = 170; z = 3
|
r = g[i + z - 1] - g[i]
|
g = [10, 20, 30, 100, 200, 300, 1000]; i = 3; r = 200; z = 3
|
n = 3
|
a = [i for i in range(0, n)]
|
a = [0, 1, 2]; n = 3
|
w = 9
|
w += 1
|
w = 10
|
a = 1; d = [1, 2]; i = 1
|
a = d[i]
|
a = 2; d = [1, 2]; i = 1
|
h = '1 9'; l = '1'; p = '4'
|
l, p = h.split(' ')
|
h = '1 9'; l = '1'; p = '9'
|
m = 1.2000000000000005e-30
|
m = m / 10
|
m = 1.2000000000000005e-31
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.