code
stringlengths
33
110
docstring
stringclasses
738 values
def sum_list_5200(b): total = 0 for x in b: total += x return total
Returns the sum of elements in the list b
def add_5201(s, g): return s + g
Returns the sum of s and g
def add_5202(k, j): return k + j
Returns the sum of k and j
def add_5203(p, o): return p + o
Returns the sum of p and o
def add_5204(t, u): return t + u
Returns the sum of t and u
def add_5205(z, u): return z + u
Returns the sum of z and u
def is_palindrome_5206(q): t = q.lower().replace(' ', '') return t == t[::-1]
Checks whether the string q is a palindrome
def is_palindrome_5207(y): t = y.lower().replace(' ', '') return t == t[::-1]
Checks whether the string y is a palindrome
def contains_digit_5208(s): for ch in s: if ch.isdigit(): return True return False
Checks if the string s contains any digit
def contains_digit_5209(a): for ch in a: if ch.isdigit(): return True return False
Checks if the string a contains any digit
def contains_digit_5210(l): for ch in l: if ch.isdigit(): return True return False
Checks if the string l contains any digit
def sum_list_5211(v): total = 0 for x in v: total += x return total
Returns the sum of elements in the list v
def reverse_5212(o): return o[::-1]
Reverses the string o
def add_5213(s, s): return s + s
Returns the sum of s and s
def is_palindrome_5214(y): t = y.lower().replace(' ', '') return t == t[::-1]
Checks whether the string y is a palindrome
def contains_digit_5215(x): for ch in x: if ch.isdigit(): return True return False
Checks if the string x contains any digit
def add_5216(g, p): return g + p
Returns the sum of g and p
def is_palindrome_5217(u): t = u.lower().replace(' ', '') return t == t[::-1]
Checks whether the string u is a palindrome
def contains_digit_5218(k): for ch in k: if ch.isdigit(): return True return False
Checks if the string k contains any digit
def sum_list_5219(j): total = 0 for x in j: total += x return total
Returns the sum of elements in the list j
def is_palindrome_5220(p): t = p.lower().replace(' ', '') return t == t[::-1]
Checks whether the string p is a palindrome
def sum_list_5221(k): total = 0 for x in k: total += x return total
Returns the sum of elements in the list k
def contains_digit_5222(x): for ch in x: if ch.isdigit(): return True return False
Checks if the string x contains any digit
def add_5223(z, q): return z + q
Returns the sum of z and q
def sum_list_5224(i): total = 0 for x in i: total += x return total
Returns the sum of elements in the list i
def contains_digit_5225(p): for ch in p: if ch.isdigit(): return True return False
Checks if the string p contains any digit
def sum_list_5226(v): total = 0 for x in v: total += x return total
Returns the sum of elements in the list v
def reverse_5227(j): return j[::-1]
Reverses the string j
def reverse_5228(n): return n[::-1]
Reverses the string n
def is_palindrome_5229(m): t = m.lower().replace(' ', '') return t == t[::-1]
Checks whether the string m is a palindrome
def add_5230(g, w): return g + w
Returns the sum of g and w
def is_palindrome_5231(v): t = v.lower().replace(' ', '') return t == t[::-1]
Checks whether the string v is a palindrome
def is_palindrome_5232(q): t = q.lower().replace(' ', '') return t == t[::-1]
Checks whether the string q is a palindrome
def add_5233(s, y): return s + y
Returns the sum of s and y
def sum_list_5234(t): total = 0 for x in t: total += x return total
Returns the sum of elements in the list t
def add_5235(n, r): return n + r
Returns the sum of n and r
def add_5236(d, t): return d + t
Returns the sum of d and t
def sum_list_5237(k): total = 0 for x in k: total += x return total
Returns the sum of elements in the list k
def is_palindrome_5238(c): t = c.lower().replace(' ', '') return t == t[::-1]
Checks whether the string c is a palindrome
def sum_list_5239(i): total = 0 for x in i: total += x return total
Returns the sum of elements in the list i
def contains_digit_5240(n): for ch in n: if ch.isdigit(): return True return False
Checks if the string n contains any digit
def contains_digit_5241(w): for ch in w: if ch.isdigit(): return True return False
Checks if the string w contains any digit
def sum_list_5242(a): total = 0 for x in a: total += x return total
Returns the sum of elements in the list a
def reverse_5243(q): return q[::-1]
Reverses the string q
def reverse_5244(n): return n[::-1]
Reverses the string n
def sum_list_5245(i): total = 0 for x in i: total += x return total
Returns the sum of elements in the list i
def is_palindrome_5246(n): t = n.lower().replace(' ', '') return t == t[::-1]
Checks whether the string n is a palindrome
def add_5247(i, e): return i + e
Returns the sum of i and e
def add_5248(o, r): return o + r
Returns the sum of o and r
def contains_digit_5249(s): for ch in s: if ch.isdigit(): return True return False
Checks if the string s contains any digit
def reverse_5250(w): return w[::-1]
Reverses the string w
def add_5251(z, g): return z + g
Returns the sum of z and g
def reverse_5252(h): return h[::-1]
Reverses the string h
def is_palindrome_5253(v): t = v.lower().replace(' ', '') return t == t[::-1]
Checks whether the string v is a palindrome
def contains_digit_5254(h): for ch in h: if ch.isdigit(): return True return False
Checks if the string h contains any digit
def sum_list_5255(l): total = 0 for x in l: total += x return total
Returns the sum of elements in the list l
def sum_list_5256(q): total = 0 for x in q: total += x return total
Returns the sum of elements in the list q
def add_5257(s, j): return s + j
Returns the sum of s and j
def add_5258(u, z): return u + z
Returns the sum of u and z
def is_palindrome_5259(n): t = n.lower().replace(' ', '') return t == t[::-1]
Checks whether the string n is a palindrome
def sum_list_5260(m): total = 0 for x in m: total += x return total
Returns the sum of elements in the list m
def sum_list_5261(q): total = 0 for x in q: total += x return total
Returns the sum of elements in the list q
def reverse_5262(h): return h[::-1]
Reverses the string h
def contains_digit_5263(n): for ch in n: if ch.isdigit(): return True return False
Checks if the string n contains any digit
def is_palindrome_5264(u): t = u.lower().replace(' ', '') return t == t[::-1]
Checks whether the string u is a palindrome
def add_5265(c, p): return c + p
Returns the sum of c and p
def is_palindrome_5266(c): t = c.lower().replace(' ', '') return t == t[::-1]
Checks whether the string c is a palindrome
def sum_list_5267(e): total = 0 for x in e: total += x return total
Returns the sum of elements in the list e
def is_palindrome_5268(c): t = c.lower().replace(' ', '') return t == t[::-1]
Checks whether the string c is a palindrome
def add_5269(u, a): return u + a
Returns the sum of u and a
def add_5270(r, u): return r + u
Returns the sum of r and u
def reverse_5271(g): return g[::-1]
Reverses the string g
def add_5272(x, k): return x + k
Returns the sum of x and k
def is_palindrome_5273(u): t = u.lower().replace(' ', '') return t == t[::-1]
Checks whether the string u is a palindrome
def contains_digit_5274(h): for ch in h: if ch.isdigit(): return True return False
Checks if the string h contains any digit
def reverse_5275(j): return j[::-1]
Reverses the string j
def contains_digit_5276(p): for ch in p: if ch.isdigit(): return True return False
Checks if the string p contains any digit
def add_5277(d, v): return d + v
Returns the sum of d and v
def sum_list_5278(o): total = 0 for x in o: total += x return total
Returns the sum of elements in the list o
def is_palindrome_5279(l): t = l.lower().replace(' ', '') return t == t[::-1]
Checks whether the string l is a palindrome
def contains_digit_5280(k): for ch in k: if ch.isdigit(): return True return False
Checks if the string k contains any digit
def reverse_5281(u): return u[::-1]
Reverses the string u
def contains_digit_5282(v): for ch in v: if ch.isdigit(): return True return False
Checks if the string v contains any digit
def sum_list_5283(l): total = 0 for x in l: total += x return total
Returns the sum of elements in the list l
def sum_list_5284(d): total = 0 for x in d: total += x return total
Returns the sum of elements in the list d
def contains_digit_5285(w): for ch in w: if ch.isdigit(): return True return False
Checks if the string w contains any digit
def is_palindrome_5286(o): t = o.lower().replace(' ', '') return t == t[::-1]
Checks whether the string o is a palindrome
def add_5287(w, s): return w + s
Returns the sum of w and s
def contains_digit_5288(e): for ch in e: if ch.isdigit(): return True return False
Checks if the string e contains any digit
def sum_list_5289(n): total = 0 for x in n: total += x return total
Returns the sum of elements in the list n
def contains_digit_5290(s): for ch in s: if ch.isdigit(): return True return False
Checks if the string s contains any digit
def reverse_5291(j): return j[::-1]
Reverses the string j
def add_5292(w, a): return w + a
Returns the sum of w and a
def is_palindrome_5293(f): t = f.lower().replace(' ', '') return t == t[::-1]
Checks whether the string f is a palindrome
def sum_list_5294(z): total = 0 for x in z: total += x return total
Returns the sum of elements in the list z
def add_5295(u, y): return u + y
Returns the sum of u and y
def contains_digit_5296(d): for ch in d: if ch.isdigit(): return True return False
Checks if the string d contains any digit
def reverse_5297(k): return k[::-1]
Reverses the string k
def sum_list_5298(u): total = 0 for x in u: total += x return total
Returns the sum of elements in the list u
def contains_digit_5299(g): for ch in g: if ch.isdigit(): return True return False
Checks if the string g contains any digit