start
stringlengths
5
368
code
stringlengths
5
143
end
stringlengths
5
527
a = [1, 2, 3, 4]; i = 0
a[i] = -1
a = [-1, 2, 3, 4]; i = 0
y = ['a', 'b', 'c', 'd']
y = ''.join(y)
y = 'abcd'
c = 103; s = 'hegf'; w = 'dhck'
s = [ord(c) for c in w]
c = 103; s = [100, 104, 99, 107]; w = 'dhck'
n = [2, 3, 9, 10, 12]; v = 2
n.remove(v)
n = [3, 9, 10, 12]; v = 2
e = 4; y = set()
y.add(e)
e = 4; y = {4}
j = ['7', '50']
l = int(j[0])
j = ['7', '50']; l = 7
i = 4; j = 6; m = 'ifailuhkqq'; u = ['i', 'fi', 'afi', 'afii', 'afiil', 'afiilu', 'ilu', 'hilu', 'hiklu', 'hiklqu', 'hiklqqu', 'l']
u.append(''.join(sorted(m[i:j])))
i = 4; j = 6; m = 'ifailuhkqq'; u = ['i', 'fi', 'afi', 'afii', 'afiil', 'afiilu', 'ilu', 'hilu', 'hiklu', 'hiklqu', 'hiklqqu', 'l', 'lu']
b = 1; i = {2}
i.add(b)
b = 1; i = {1, 2}
b = 1.75; l = [1.5]
l.append(b % 2)
b = 1.75; l = [1.5, 1.75]
i = 3
h += i
h = -9; i = 3
b = 'd'; m = 'cd'
b = ''.join(sorted(m))
b = 'cd'; m = 'cd'
d = 1000000007; i = 22; o = 3; y = 2
i += y * (o + 1) % d
d = 1000000007; i = 30; o = 3; y = 2
a = [1, 2, 3]; i = 2; j = 0; k = [3, 0, 1]
k.append(a[i] ^ a[j])
a = [1, 2, 3]; i = 2; j = 0; k = [3, 0, 1, 2]
a = [1, 0, 0, 0, 0]; o = 4
a[o - 1] += 1
a = [1, 0, 0, 1, 0]; o = 4
i = 2; j = 9; s = 'ifailuhkqq'; x = 'ailuhk'
x = s[i:j]
i = 2; j = 9; s = 'ifailuhkqq'; x = 'ailuhkq'
i = '3084193741082938'; x = ['1', '2', '100', '12303479849857341718340192371', '3084193741082937']
x.append(i)
i = '3084193741082938'; x = ['1', '2', '100', '12303479849857341718340192371', '3084193741082937', '3084193741082938']
a = ['3', '6']; x = [[0, 0]]
a = [int(x) for x in a]
a = [3, 6]; x = [[0, 0]]
b = 2; z = [2, 5, 100]
b = z[1]
b = 5; z = [2, 5, 100]
b = [['-', '-', '-', '-'], [], [], [], ['-'], [], ['-', '-', '-'], [], [], [], [], [], [], [], [], []]; d = 'gh'; x = 6
b[x].append(d)
b = [['-', '-', '-', '-'], [], [], [], ['-'], [], ['-', '-', '-', 'gh'], [], [], [], [], [], [], [], [], []]; d = 'gh'; x = 6
h = 1; w = 1
t = h * w - emptys
h = 1; o = 28; t = -27; w = 1
l = [-45, -44, -44, -43, -43, -42, -42, -41, -41, -40, 106, 107, 107, 108, 108, 109, 110, 111, 112]
list.pop(l, 0)
l = [-44, -44, -43, -43, -42, -42, -41, -41, -40, 106, 107, 107, 108, 108, 109, 110, 111, 112]
g = 20; p = '30\n'
g = int(p)
g = 30; p = '30\n'
z = '00000000000000000100'
z = '0' + z
z = '000000000000000000100'
k = '1'; n = '4'
n, k = int(n), int(k)
k = 1; n = 4
i = 0; t = [2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0]
t[i] //= 2
i = 0; t = [1, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0]
v = 5
l = [None] * (v + 1)
l = [None, None, None, None, None, None]; v = 5
n = 3; t = [1, 4]
t.append(n)
n = 3; t = [1, 4, 3]
z = {2, 3, 4, 5, 6}
z.pop()
z = {3, 4, 5, 6}
a = 1; b = 2.5; y = 2.5
b = (y + 1 - a) / 2 + a - 1
a = 1; b = 1.25; y = 2.5
r = 1
r = r + 1
r = 2
i = 1; j = 1; w = [[1, 1, 1, 2], [1, 9, 1, 2], [1, 8, 9, 2], [1, 2, 3, 4]]
o = [w[i - 1][j], w[i][j - 1], w[i + 1][j], w[i][j + 1]]
i = 1; j = 1; o = [1, 1, 8, 1]; w = [[1, 1, 1, 2], [1, 9, 1, 2], [1, 8, 9, 2], [1, 2, 3, 4]]
o = {3, 11, 6}; y = {12}
y.update(o)
o = {11, 3, 6}; y = {3, 11, 12, 6}
n = 8
n >>= 1
n = 4
i = 3; n = [2]
n.append(i)
i = 3; n = [2, 3]
i = 2; w = {(1): {2, 4}, (2): {1, 3}, (3): {2}, (4): {1}}; y = {2, 4}
a = y | w[i]
a = {1, 2, 3, 4}; i = 2; w = {1: {2, 4}, 2: {1, 3}, 3: {2}, 4: {1}}; y = {2, 4}
i = 'A', 'C'; p = []
p.append(''.join(i))
i = ('A', 'C'); p = ['AC']
c = 2; z = [0, -3, -4]
z.append(z[-1] + c)
c = 2; z = [0, -3, -4, -2]
g = 'aacbba'; x = 'bac'
g = g + x
g = 'aacbbabac'; x = 'bac'
e = [2, 5, 3, 6]; f = [1, 0, 1, 1, 1, 2, 2, 2, 3, 1, 2]; i = 3; j = 9
f[j] += f[j - e[i - 1]]
e = [2, 5, 3, 6]; f = [1, 0, 1, 1, 1, 2, 2, 2, 3, 3, 2]; i = 3; j = 9
j = [10]; x = '2'
j.append(int(x))
j = [10, 2]; x = '2'
e = 3; k = 3
k += e
e = 3; k = 6
e = [(4, 2, 1), (3, 2, 2), (4, 3, 1)]; i = 1; j = 0; y = 43
y = y + e[i][j]
e = [(4, 2, 1), (3, 2, 2), (4, 3, 1)]; i = 1; j = 0; y = 46
d = OrderedDict([('BANANA FRIES', 12), ('POTATO CHIPS', 30), ('APPLE JUICE', 20), ('CANDY', 15)]); j = '5'; p = 'CANDY'
d[p] = d.get(p, 0) + int(j)
d = OrderedDict([('BANANA FRIES', 12), ('POTATO CHIPS', 30), ('APPLE JUICE', 20), ('CANDY', 20)]); j = '5'; p = 'CANDY'
a = 5; j = 4
a += j
a = 9; j = 4
b = {0}; n = 1
b.add(n)
b = {0, 1}; n = 1
a = 1; m = 2; w = [[0, 1, 100], [1, 4, 100], [2, 3, 100]]
a = w[m][0]
a = 2; m = 2; w = [[0, 1, 100], [1, 4, 100], [2, 3, 100]]
u = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 610, 987, 1597, 2584, 4181, 6765, 10946, 17711, 28657, 46368]
u.append(u[-1] + u[-2])
u = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 610, 987, 1597, 2584, 4181, 6765, 10946, 17711, 28657, 46368, 75025]
p = 60; t = [28]
t.append(p)
p = 60; t = [28, 60]
j = 0; z = [[2], [2, 4]]
del z[j + 1]
j = 0; z = [[2]]
u = {(-1, 1), (0, 0), (-1, 0), (-1, -1), (0, -1)}; x = 0; y = 1
u.add((x, y))
u = {(0, 1), (-1, 1), (0, 0), (-1, 0), (-1, -1), (0, -1)}; x = 0; y = 1
g = 0; u = {(2): [0], (5): [2, 0], (3): [5]}; x = 3
g = u[x][0]
g = 5; u = {2: [0], 5: [2, 0], 3: [5]}; x = 3
e = ( '^[QWRTYPSDFGHJKLZXCVBNMqwrtypsdfghjklzxcvbnm][AE...{2,}[QWRTYPSDFGHJKLZXCVBNMqwrtypsdfghjklzxcvbnm]$' ); p = ( '^[QWRTYPSDFGHJKLZXCVBNMqwrtypsdfghjklzxcvbnm][AE...{2,}[QWRTYPSDFGHJKLZXCVBNMqwrtypsdfghjklzxcvbnm]$' )
e = p
e = '^[QWRTYPSDFGHJKLZXCVBNMqwrtypsdfghjklzxcvbnm][AE...{2,}[QWRTYPSDFGHJKLZXCVBNMqwrtypsdfghjklzxcvbnm]$'; p = '^[QWRTYPSDFGHJKLZXCVBNMqwrtypsdfghjklzxcvbnm][AE...{2,}[QWRTYPSDFGHJKLZXCVBNMqwrtypsdfghjklzxcvbnm]$'
i = 'c'; l = {'e': 1, 'b': -1, 'a': -1, 'c': 1, 'd': 1}
l[i] = l[i] - 1
i = 'c'; l = {'e': 1, 'b': -1, 'a': -1, 'c': 0, 'd': 1}
s = [1, 3, 2]
del s[-1]
s = [1, 3]
g = '110100000'; i = '1'
g += '1' if i == '0' else '0'
g = '1101000000'; i = '1'
g = 'UDDDUDUU'; i = 5; t = 1
t = -1 if g[i] == 'D' else 1
g = 'UDDDUDUU'; i = 5; t = -1
j = 'abcdefg'; s = OrderedDict([('bcdef', 1)]); x = 0
s[j] = x + 1
j = 'abcdefg'; s = OrderedDict([('bcdef', 1), ('abcdefg', 1)]); x = 0
w = 2
w += 1
w = 3
j = 2; r = [1, 2, 100]; y = 5
y = r[j]
j = 2; r = [1, 2, 100]; y = 100
e = 3; x = 2
v = x - e
e = 3; v = -1; x = 2
t = ['0', 'ab']; y = 'ij'
y = t[1]
t = ['0', 'ab']; y = 'ab'
z = [[1, 3, 1], [2, 1, 2], [3, 3, 3]]
m = z
m = [[1, 3, 1], [2, 1, 2], [3, 3, 3]]; z = [[1, 3, 1], [2, 1, 2], [3, 3, 3]]
i = 7; s = 'aeiouuoiea'; t = [1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0]
t[ord(s[i]) - ord('a')] += 1
i = 7; s = 'aeiouuoiea'; t = [1, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0]
b = 1001; k = 7
b = k + 1
b = 8; k = 7
b = ['i', 'if', 'ifa', 'ifai', 'ifail', 'ifailu', 'failuhkq', 'failuhkqq', 'a', 'ai', 'ail', 'ailu']; x = 'ailuh'
b.append(x)
b = ['i', 'if', 'ifa', 'ifai', 'ifail', 'ifailu', 'failuhkq', 'failuhkqq', 'a', 'ai', 'ail', 'ailu', 'ailuh']; x = 'ailuh'
g = 119; i = 62; k = 108; m = 112
n += max(m, g, k, i)
g = 119; i = 62; k = 108; m = 112; n = 81
h = 2
h = h + 1
h = 3
g = 'cba'; x = 4
x = len(g)
g = 'cba'; x = 3
m = '3'; s = '1'
s += m
m = '3'; s = '13'
d = 93924702695936; g = []; u = {(139783618332864): [2, 1, 5]}; y = [2, 1, 5]
y = u.get(d, g)
d = 93924702695936; g = []; u = {139783618332864: [2, 1, 5]}; y = []
i = 4; l = [0, 2, 0, 3, 1]; p = [3, 2, 4, 0, 1]
l[p[p[i]]] = i
i = 4; l = [0, 2, 4, 3, 1]; p = [3, 2, 4, 0, 1]
l = [['H', 'H'], ['A', 'H']]; x = 'H', 'C'
l.append(sorted(x))
l = [['H', 'H'], ['A', 'H'], ['C', 'H']]; x = ('H', 'C')
g = '{'
t.append(g)
g = '{'; t = ['{']
e = 5; p = [5, 8, 14]; y = 1
y = abs(p[0] - e)
e = 5; p = [5, 8, 14]; y = 0
c = 96
c -= 1
c = 95
e = 11; i = 6
e = i
e = 6; i = 6
e = 'HackerRank.com presents "Pythonist 2".'; x = '\n'
e = x.strip()
e = ''; x = '\n'
e = [1, 1, 1, 1, [1, 1], [1, 1]]; y = [1, 1]
e.append(y)
e = [1, 1, 1, 1, [1, 1], [1, 1], [1, 1]]; y = [1, 1]
c = 97; f = [5548, 3648, 9025, 9120, 2607, 3478]; m = 98
f.append(m * c)
c = 97; f = [5548, 3648, 9025, 9120, 2607, 3478, 9506]; m = 98
f = [1, 2, 3]; i = '312'
i = ''.join(map(str, f))
f = [1, 2, 3]; i = '123'
x = 23; z = {3, 6, 12, 15, 21, 24, 26, 29}
z.add(x)
x = 23; z = {3, 6, 12, 15, 21, 23, 24, 26, 29}
s = 'aabbccddeefghi'
f = set(s)
f = {'c', 'h', 'i', 'g', 'd', 'f', 'b', 'a', 'e'}; s = 'aabbccddeefghi'
b = [(3, 0), (2, 1)]; d = 1; n = 2
b.append((n - 1, d + 1))
b = [(3, 0), (2, 1), (1, 2)]; d = 1; n = 2
d = 10; g = 10
d = g + 1
d = 11; g = 10
a = [1, 2, 3, 3, 2]; g = 1; i = 3
a[i - 1] = g
a = [1, 2, 1, 3, 2]; g = 1; i = 3
m = ['ive', 'got', 'some', 'coconuts']
w = {m[i]: (0) for i in range(len(m))}
m = []; w = {}
a = 4; b = -2; w = 392
w = int(a ** b)
a = 4; b = -2; w = 0
c = [1]; n = 1; o = 1; w = {(4, (1,)): 1, (2, (1,)): 1, (2, (1, 2)): 2, (4, (1, 2)): 3, (1, (1,)): 1, (1, (1, 2)): 1}
w[n, tuple(c)] = o
c = [1]; n = 1; o = 1; w = {(4, (1,)): 1, (2, (1,)): 1, (2, (1, 2)): 2, (4, (1, 2)): 3, (1, (1,)): 1, (1, (1, 2)): 1}
x = 9; y = [1, 3, 5, 7]
x = y.pop()
x = 7; y = [1, 3, 5]
c = [1, 4, 3, 5, 6, 2]; d = 2
f = c[d]
c = [1, 4, 3, 5, 6, 2]; d = 2; f = 3
i = 4; p = [3]
p.append(i)
i = 4; p = [3, 4]
c = [1, 2, 1, 2, 1, 2, 0, 0]; i = 6
c[i] = 1
c = [1, 2, 1, 2, 1, 2, 1, 0]; i = 6
l = [2]; s = 4
s = l.pop(0)
l = []; s = 2
l = 1; n = 4; y = 1
w = l - y + (n - l - y - (l - y)) // 2
l = 1; n = 4; w = 1; y = 1
i = 2; n = 0
n = i
i = 2; n = 2
j = '111111111111111111111111111111'
j += '1'
j = '1111111111111111111111111111111'
b = '2'; h = 1
h = h + int(b)
b = '2'; h = 3
i = 7; l = [1, 2, 1, 1, 1, 2, 1, 3]; t = [1, 3, 4, 5, 6, 8, 9, 0]
t[i] = t[i - 1] + l[i]
i = 7; l = [1, 2, 1, 1, 1, 2, 1, 3]; t = [1, 3, 4, 5, 6, 8, 9, 12]
n = 5; v = 1.0
v = n * (n - 1) / 2
n = 5; v = 10.0
h = ['Such', 'were', 'Willarski', 'and', 'even', 'the', 'Master', 'of', 'the', 'principal', 'lodge.']; r = ( 'In the third category he included those Brothers...ut troubling about their purport or significance.' )
r = h[0]
h = ['Such', 'were', 'Willarski', 'and', 'even', 'the', 'Master', 'of', 'the', 'principal', 'lodge.']; r = 'Such'