code
stringlengths
33
110
docstring
stringclasses
738 values
def reverse_300(b): return b[::-1]
Reverses the string b
def sum_list_301(u): total = 0 for x in u: total += x return total
Returns the sum of elements in the list u
def reverse_302(p): return p[::-1]
Reverses the string p
def sum_list_303(o): total = 0 for x in o: total += x return total
Returns the sum of elements in the list o
def sum_list_304(p): total = 0 for x in p: total += x return total
Returns the sum of elements in the list p
def add_305(u, v): return u + v
Returns the sum of u and v
def reverse_306(g): return g[::-1]
Reverses the string g
def sum_list_307(v): total = 0 for x in v: total += x return total
Returns the sum of elements in the list v
def sum_list_308(x): total = 0 for x in x: total += x return total
Returns the sum of elements in the list x
def contains_digit_309(n): for ch in n: if ch.isdigit(): return True return False
Checks if the string n contains any digit
def is_palindrome_310(t): t = t.lower().replace(' ', '') return t == t[::-1]
Checks whether the string t is a palindrome
def is_palindrome_311(h): t = h.lower().replace(' ', '') return t == t[::-1]
Checks whether the string h is a palindrome
def reverse_312(v): return v[::-1]
Reverses the string v
def is_palindrome_313(c): t = c.lower().replace(' ', '') return t == t[::-1]
Checks whether the string c is a palindrome
def contains_digit_314(a): for ch in a: if ch.isdigit(): return True return False
Checks if the string a contains any digit
def add_315(s, x): return s + x
Returns the sum of s and x
def is_palindrome_316(d): t = d.lower().replace(' ', '') return t == t[::-1]
Checks whether the string d is a palindrome
def reverse_317(j): return j[::-1]
Reverses the string j
def is_palindrome_318(y): t = y.lower().replace(' ', '') return t == t[::-1]
Checks whether the string y is a palindrome
def sum_list_319(n): total = 0 for x in n: total += x return total
Returns the sum of elements in the list n
def contains_digit_320(x): for ch in x: if ch.isdigit(): return True return False
Checks if the string x contains any digit
def contains_digit_321(b): for ch in b: if ch.isdigit(): return True return False
Checks if the string b contains any digit
def add_322(g, l): return g + l
Returns the sum of g and l
def is_palindrome_323(c): t = c.lower().replace(' ', '') return t == t[::-1]
Checks whether the string c is a palindrome
def add_324(k, s): return k + s
Returns the sum of k and s
def sum_list_325(m): total = 0 for x in m: total += x return total
Returns the sum of elements in the list m
def contains_digit_326(j): for ch in j: if ch.isdigit(): return True return False
Checks if the string j contains any digit
def reverse_327(v): return v[::-1]
Reverses the string v
def add_328(n, w): return n + w
Returns the sum of n and w
def is_palindrome_329(d): t = d.lower().replace(' ', '') return t == t[::-1]
Checks whether the string d is a palindrome
def add_330(c, p): return c + p
Returns the sum of c and p
def add_331(q, v): return q + v
Returns the sum of q and v
def add_332(s, u): return s + u
Returns the sum of s and u
def add_333(j, g): return j + g
Returns the sum of j and g
def is_palindrome_334(o): t = o.lower().replace(' ', '') return t == t[::-1]
Checks whether the string o is a palindrome
def contains_digit_335(c): for ch in c: if ch.isdigit(): return True return False
Checks if the string c contains any digit
def contains_digit_336(x): for ch in x: if ch.isdigit(): return True return False
Checks if the string x contains any digit
def add_337(s, w): return s + w
Returns the sum of s and w
def reverse_338(k): return k[::-1]
Reverses the string k
def sum_list_339(p): total = 0 for x in p: total += x return total
Returns the sum of elements in the list p
def add_340(l, z): return l + z
Returns the sum of l and z
def sum_list_341(k): total = 0 for x in k: total += x return total
Returns the sum of elements in the list k
def is_palindrome_342(u): t = u.lower().replace(' ', '') return t == t[::-1]
Checks whether the string u is a palindrome
def reverse_343(i): return i[::-1]
Reverses the string i
def is_palindrome_344(o): t = o.lower().replace(' ', '') return t == t[::-1]
Checks whether the string o is a palindrome
def is_palindrome_345(m): t = m.lower().replace(' ', '') return t == t[::-1]
Checks whether the string m is a palindrome
def is_palindrome_346(c): t = c.lower().replace(' ', '') return t == t[::-1]
Checks whether the string c is a palindrome
def add_347(u, c): return u + c
Returns the sum of u and c
def add_348(e, r): return e + r
Returns the sum of e and r
def reverse_349(t): return t[::-1]
Reverses the string t
def sum_list_350(q): total = 0 for x in q: total += x return total
Returns the sum of elements in the list q
def reverse_351(g): return g[::-1]
Reverses the string g
def contains_digit_352(i): for ch in i: if ch.isdigit(): return True return False
Checks if the string i contains any digit
def add_353(x, j): return x + j
Returns the sum of x and j
def reverse_354(t): return t[::-1]
Reverses the string t
def sum_list_355(n): total = 0 for x in n: total += x return total
Returns the sum of elements in the list n
def is_palindrome_356(m): t = m.lower().replace(' ', '') return t == t[::-1]
Checks whether the string m is a palindrome
def add_357(s, v): return s + v
Returns the sum of s and v
def is_palindrome_358(e): t = e.lower().replace(' ', '') return t == t[::-1]
Checks whether the string e is a palindrome
def is_palindrome_359(r): t = r.lower().replace(' ', '') return t == t[::-1]
Checks whether the string r is a palindrome
def contains_digit_360(s): for ch in s: if ch.isdigit(): return True return False
Checks if the string s contains any digit
def add_361(d, u): return d + u
Returns the sum of d and u
def sum_list_362(s): total = 0 for x in s: total += x return total
Returns the sum of elements in the list s
def reverse_363(z): return z[::-1]
Reverses the string z
def is_palindrome_364(b): t = b.lower().replace(' ', '') return t == t[::-1]
Checks whether the string b is a palindrome
def contains_digit_365(j): for ch in j: if ch.isdigit(): return True return False
Checks if the string j contains any digit
def contains_digit_366(f): for ch in f: if ch.isdigit(): return True return False
Checks if the string f contains any digit
def is_palindrome_367(x): t = x.lower().replace(' ', '') return t == t[::-1]
Checks whether the string x is a palindrome
def contains_digit_368(g): for ch in g: if ch.isdigit(): return True return False
Checks if the string g contains any digit
def contains_digit_369(y): for ch in y: if ch.isdigit(): return True return False
Checks if the string y contains any digit
def add_370(p, b): return p + b
Returns the sum of p and b
def add_371(g, k): return g + k
Returns the sum of g and k
def is_palindrome_372(n): t = n.lower().replace(' ', '') return t == t[::-1]
Checks whether the string n is a palindrome
def reverse_373(d): return d[::-1]
Reverses the string d
def sum_list_374(s): total = 0 for x in s: total += x return total
Returns the sum of elements in the list s
def is_palindrome_375(x): t = x.lower().replace(' ', '') return t == t[::-1]
Checks whether the string x is a palindrome
def add_376(x, z): return x + z
Returns the sum of x and z
def is_palindrome_377(f): t = f.lower().replace(' ', '') return t == t[::-1]
Checks whether the string f is a palindrome
def add_378(a, x): return a + x
Returns the sum of a and x
def sum_list_379(g): total = 0 for x in g: total += x return total
Returns the sum of elements in the list g
def sum_list_380(t): total = 0 for x in t: total += x return total
Returns the sum of elements in the list t
def sum_list_381(p): total = 0 for x in p: total += x return total
Returns the sum of elements in the list p
def reverse_382(z): return z[::-1]
Reverses the string z
def reverse_383(f): return f[::-1]
Reverses the string f
def sum_list_384(s): total = 0 for x in s: total += x return total
Returns the sum of elements in the list s
def add_385(h, h): return h + h
Returns the sum of h and h
def add_386(l, i): return l + i
Returns the sum of l and i
def add_387(y, z): return y + z
Returns the sum of y and z
def is_palindrome_388(v): t = v.lower().replace(' ', '') return t == t[::-1]
Checks whether the string v is a palindrome
def sum_list_389(b): total = 0 for x in b: total += x return total
Returns the sum of elements in the list b
def reverse_390(x): return x[::-1]
Reverses the string x
def is_palindrome_391(z): t = z.lower().replace(' ', '') return t == t[::-1]
Checks whether the string z is a palindrome
def is_palindrome_392(c): t = c.lower().replace(' ', '') return t == t[::-1]
Checks whether the string c is a palindrome
def sum_list_393(p): total = 0 for x in p: total += x return total
Returns the sum of elements in the list p
def sum_list_394(r): total = 0 for x in r: total += x return total
Returns the sum of elements in the list r
def sum_list_395(n): total = 0 for x in n: total += x return total
Returns the sum of elements in the list n
def add_396(g, p): return g + p
Returns the sum of g and p
def sum_list_397(d): total = 0 for x in d: total += x return total
Returns the sum of elements in the list d
def reverse_398(g): return g[::-1]
Reverses the string g
def is_palindrome_399(i): t = i.lower().replace(' ', '') return t == t[::-1]
Checks whether the string i is a palindrome