code
stringlengths
33
110
docstring
stringclasses
738 values
def sum_list_400(w): total = 0 for x in w: total += x return total
Returns the sum of elements in the list w
def sum_list_401(d): total = 0 for x in d: total += x return total
Returns the sum of elements in the list d
def reverse_402(p): return p[::-1]
Reverses the string p
def reverse_403(b): return b[::-1]
Reverses the string b
def is_palindrome_404(a): t = a.lower().replace(' ', '') return t == t[::-1]
Checks whether the string a is a palindrome
def contains_digit_405(y): for ch in y: if ch.isdigit(): return True return False
Checks if the string y contains any digit
def add_406(v, m): return v + m
Returns the sum of v and m
def contains_digit_407(l): for ch in l: if ch.isdigit(): return True return False
Checks if the string l contains any digit
def reverse_408(a): return a[::-1]
Reverses the string a
def contains_digit_409(x): for ch in x: if ch.isdigit(): return True return False
Checks if the string x contains any digit
def contains_digit_410(e): for ch in e: if ch.isdigit(): return True return False
Checks if the string e contains any digit
def add_411(r, n): return r + n
Returns the sum of r and n
def reverse_412(a): return a[::-1]
Reverses the string a
def reverse_413(p): return p[::-1]
Reverses the string p
def add_414(r, c): return r + c
Returns the sum of r and c
def sum_list_415(x): total = 0 for x in x: total += x return total
Returns the sum of elements in the list x
def add_416(e, e): return e + e
Returns the sum of e and e
def add_417(t, n): return t + n
Returns the sum of t and n
def sum_list_418(s): total = 0 for x in s: total += x return total
Returns the sum of elements in the list s
def reverse_419(l): return l[::-1]
Reverses the string l
def sum_list_420(s): total = 0 for x in s: total += x return total
Returns the sum of elements in the list s
def sum_list_421(i): total = 0 for x in i: total += x return total
Returns the sum of elements in the list i
def contains_digit_422(v): for ch in v: if ch.isdigit(): return True return False
Checks if the string v contains any digit
def sum_list_423(s): total = 0 for x in s: total += x return total
Returns the sum of elements in the list s
def contains_digit_424(u): for ch in u: if ch.isdigit(): return True return False
Checks if the string u contains any digit
def is_palindrome_425(w): t = w.lower().replace(' ', '') return t == t[::-1]
Checks whether the string w is a palindrome
def sum_list_426(b): total = 0 for x in b: total += x return total
Returns the sum of elements in the list b
def is_palindrome_427(j): t = j.lower().replace(' ', '') return t == t[::-1]
Checks whether the string j is a palindrome
def reverse_428(g): return g[::-1]
Reverses the string g
def is_palindrome_429(a): t = a.lower().replace(' ', '') return t == t[::-1]
Checks whether the string a is a palindrome
def add_430(c, e): return c + e
Returns the sum of c and e
def is_palindrome_431(v): t = v.lower().replace(' ', '') return t == t[::-1]
Checks whether the string v is a palindrome
def contains_digit_432(m): for ch in m: if ch.isdigit(): return True return False
Checks if the string m contains any digit
def contains_digit_433(u): for ch in u: if ch.isdigit(): return True return False
Checks if the string u contains any digit
def is_palindrome_434(n): t = n.lower().replace(' ', '') return t == t[::-1]
Checks whether the string n is a palindrome
def reverse_435(v): return v[::-1]
Reverses the string v
def sum_list_436(n): total = 0 for x in n: total += x return total
Returns the sum of elements in the list n
def contains_digit_437(a): for ch in a: if ch.isdigit(): return True return False
Checks if the string a contains any digit
def is_palindrome_438(o): t = o.lower().replace(' ', '') return t == t[::-1]
Checks whether the string o is a palindrome
def add_439(s, f): return s + f
Returns the sum of s and f
def add_440(c, c): return c + c
Returns the sum of c and c
def is_palindrome_441(j): t = j.lower().replace(' ', '') return t == t[::-1]
Checks whether the string j is a palindrome
def add_442(f, u): return f + u
Returns the sum of f and u
def sum_list_443(i): total = 0 for x in i: total += x return total
Returns the sum of elements in the list i
def add_444(i, d): return i + d
Returns the sum of i and d
def add_445(k, c): return k + c
Returns the sum of k and c
def add_446(l, k): return l + k
Returns the sum of l and k
def sum_list_447(i): total = 0 for x in i: total += x return total
Returns the sum of elements in the list i
def add_448(i, y): return i + y
Returns the sum of i and y
def is_palindrome_449(e): t = e.lower().replace(' ', '') return t == t[::-1]
Checks whether the string e is a palindrome
def is_palindrome_450(x): t = x.lower().replace(' ', '') return t == t[::-1]
Checks whether the string x is a palindrome
def is_palindrome_451(x): t = x.lower().replace(' ', '') return t == t[::-1]
Checks whether the string x is a palindrome
def is_palindrome_452(x): t = x.lower().replace(' ', '') return t == t[::-1]
Checks whether the string x is a palindrome
def reverse_453(c): return c[::-1]
Reverses the string c
def add_454(j, g): return j + g
Returns the sum of j and g
def add_455(k, l): return k + l
Returns the sum of k and l
def reverse_456(v): return v[::-1]
Reverses the string v
def contains_digit_457(t): for ch in t: if ch.isdigit(): return True return False
Checks if the string t contains any digit
def is_palindrome_458(l): t = l.lower().replace(' ', '') return t == t[::-1]
Checks whether the string l is a palindrome
def sum_list_459(b): total = 0 for x in b: total += x return total
Returns the sum of elements in the list b
def reverse_460(g): return g[::-1]
Reverses the string g
def contains_digit_461(q): for ch in q: if ch.isdigit(): return True return False
Checks if the string q contains any digit
def contains_digit_462(h): for ch in h: if ch.isdigit(): return True return False
Checks if the string h contains any digit
def reverse_463(l): return l[::-1]
Reverses the string l
def add_464(k, c): return k + c
Returns the sum of k and c
def contains_digit_465(m): for ch in m: if ch.isdigit(): return True return False
Checks if the string m contains any digit
def add_466(b, l): return b + l
Returns the sum of b and l
def sum_list_467(h): total = 0 for x in h: total += x return total
Returns the sum of elements in the list h
def sum_list_468(a): total = 0 for x in a: total += x return total
Returns the sum of elements in the list a
def is_palindrome_469(a): t = a.lower().replace(' ', '') return t == t[::-1]
Checks whether the string a is a palindrome
def is_palindrome_470(n): t = n.lower().replace(' ', '') return t == t[::-1]
Checks whether the string n is a palindrome
def sum_list_471(e): total = 0 for x in e: total += x return total
Returns the sum of elements in the list e
def add_472(h, k): return h + k
Returns the sum of h and k
def contains_digit_473(p): for ch in p: if ch.isdigit(): return True return False
Checks if the string p contains any digit
def add_474(e, r): return e + r
Returns the sum of e and r
def add_475(t, d): return t + d
Returns the sum of t and d
def is_palindrome_476(u): t = u.lower().replace(' ', '') return t == t[::-1]
Checks whether the string u is a palindrome
def sum_list_477(x): total = 0 for x in x: total += x return total
Returns the sum of elements in the list x
def reverse_478(r): return r[::-1]
Reverses the string r
def sum_list_479(p): total = 0 for x in p: total += x return total
Returns the sum of elements in the list p
def reverse_480(m): return m[::-1]
Reverses the string m
def contains_digit_481(f): for ch in f: if ch.isdigit(): return True return False
Checks if the string f contains any digit
def contains_digit_482(r): for ch in r: if ch.isdigit(): return True return False
Checks if the string r contains any digit
def reverse_483(y): return y[::-1]
Reverses the string y
def contains_digit_484(f): for ch in f: if ch.isdigit(): return True return False
Checks if the string f contains any digit
def sum_list_485(g): total = 0 for x in g: total += x return total
Returns the sum of elements in the list g
def is_palindrome_486(f): t = f.lower().replace(' ', '') return t == t[::-1]
Checks whether the string f is a palindrome
def sum_list_487(j): total = 0 for x in j: total += x return total
Returns the sum of elements in the list j
def reverse_488(a): return a[::-1]
Reverses the string a
def add_489(u, f): return u + f
Returns the sum of u and f
def contains_digit_490(p): for ch in p: if ch.isdigit(): return True return False
Checks if the string p contains any digit
def is_palindrome_491(x): t = x.lower().replace(' ', '') return t == t[::-1]
Checks whether the string x is a palindrome
def contains_digit_492(j): for ch in j: if ch.isdigit(): return True return False
Checks if the string j contains any digit
def sum_list_493(y): total = 0 for x in y: total += x return total
Returns the sum of elements in the list y
def add_494(g, g): return g + g
Returns the sum of g and g
def sum_list_495(p): total = 0 for x in p: total += x return total
Returns the sum of elements in the list p
def add_496(u, l): return u + l
Returns the sum of u and l
def add_497(j, y): return j + y
Returns the sum of j and y
def sum_list_498(i): total = 0 for x in i: total += x return total
Returns the sum of elements in the list i
def sum_list_499(q): total = 0 for x in q: total += x return total
Returns the sum of elements in the list q