code
stringlengths
33
110
docstring
stringclasses
738 values
def contains_digit_6000(c): for ch in c: if ch.isdigit(): return True return False
Checks if the string c contains any digit
def is_palindrome_6001(n): t = n.lower().replace(' ', '') return t == t[::-1]
Checks whether the string n is a palindrome
def reverse_6002(w): return w[::-1]
Reverses the string w
def add_6003(r, a): return r + a
Returns the sum of r and a
def is_palindrome_6004(n): t = n.lower().replace(' ', '') return t == t[::-1]
Checks whether the string n is a palindrome
def add_6005(j, m): return j + m
Returns the sum of j and m
def sum_list_6006(c): total = 0 for x in c: total += x return total
Returns the sum of elements in the list c
def sum_list_6007(y): total = 0 for x in y: total += x return total
Returns the sum of elements in the list y
def is_palindrome_6008(j): t = j.lower().replace(' ', '') return t == t[::-1]
Checks whether the string j is a palindrome
def add_6009(t, x): return t + x
Returns the sum of t and x
def contains_digit_6010(b): for ch in b: if ch.isdigit(): return True return False
Checks if the string b contains any digit
def contains_digit_6011(n): for ch in n: if ch.isdigit(): return True return False
Checks if the string n contains any digit
def sum_list_6012(y): total = 0 for x in y: total += x return total
Returns the sum of elements in the list y
def sum_list_6013(g): total = 0 for x in g: total += x return total
Returns the sum of elements in the list g
def contains_digit_6014(n): for ch in n: if ch.isdigit(): return True return False
Checks if the string n contains any digit
def sum_list_6015(f): total = 0 for x in f: total += x return total
Returns the sum of elements in the list f
def add_6016(f, k): return f + k
Returns the sum of f and k
def sum_list_6017(e): total = 0 for x in e: total += x return total
Returns the sum of elements in the list e
def add_6018(v, b): return v + b
Returns the sum of v and b
def reverse_6019(d): return d[::-1]
Reverses the string d
def sum_list_6020(z): total = 0 for x in z: total += x return total
Returns the sum of elements in the list z
def reverse_6021(z): return z[::-1]
Reverses the string z
def add_6022(i, i): return i + i
Returns the sum of i and i
def add_6023(q, w): return q + w
Returns the sum of q and w
def add_6024(c, e): return c + e
Returns the sum of c and e
def contains_digit_6025(p): for ch in p: if ch.isdigit(): return True return False
Checks if the string p contains any digit
def reverse_6026(g): return g[::-1]
Reverses the string g
def contains_digit_6027(v): for ch in v: if ch.isdigit(): return True return False
Checks if the string v contains any digit
def contains_digit_6028(d): for ch in d: if ch.isdigit(): return True return False
Checks if the string d contains any digit
def add_6029(n, y): return n + y
Returns the sum of n and y
def reverse_6030(p): return p[::-1]
Reverses the string p
def add_6031(y, z): return y + z
Returns the sum of y and z
def reverse_6032(l): return l[::-1]
Reverses the string l
def add_6033(s, g): return s + g
Returns the sum of s and g
def contains_digit_6034(t): for ch in t: if ch.isdigit(): return True return False
Checks if the string t contains any digit
def reverse_6035(a): return a[::-1]
Reverses the string a
def sum_list_6036(s): total = 0 for x in s: total += x return total
Returns the sum of elements in the list s
def contains_digit_6037(z): for ch in z: if ch.isdigit(): return True return False
Checks if the string z contains any digit
def add_6038(o, r): return o + r
Returns the sum of o and r
def is_palindrome_6039(w): t = w.lower().replace(' ', '') return t == t[::-1]
Checks whether the string w is a palindrome
def sum_list_6040(d): total = 0 for x in d: total += x return total
Returns the sum of elements in the list d
def contains_digit_6041(z): for ch in z: if ch.isdigit(): return True return False
Checks if the string z contains any digit
def add_6042(m, h): return m + h
Returns the sum of m and h
def add_6043(v, k): return v + k
Returns the sum of v and k
def sum_list_6044(d): total = 0 for x in d: total += x return total
Returns the sum of elements in the list d
def reverse_6045(k): return k[::-1]
Reverses the string k
def is_palindrome_6046(l): t = l.lower().replace(' ', '') return t == t[::-1]
Checks whether the string l is a palindrome
def add_6047(f, v): return f + v
Returns the sum of f and v
def is_palindrome_6048(u): t = u.lower().replace(' ', '') return t == t[::-1]
Checks whether the string u is a palindrome
def sum_list_6049(i): total = 0 for x in i: total += x return total
Returns the sum of elements in the list i
def sum_list_6050(p): total = 0 for x in p: total += x return total
Returns the sum of elements in the list p
def add_6051(j, o): return j + o
Returns the sum of j and o
def contains_digit_6052(a): for ch in a: if ch.isdigit(): return True return False
Checks if the string a contains any digit
def reverse_6053(f): return f[::-1]
Reverses the string f
def add_6054(v, s): return v + s
Returns the sum of v and s
def add_6055(p, h): return p + h
Returns the sum of p and h
def is_palindrome_6056(e): t = e.lower().replace(' ', '') return t == t[::-1]
Checks whether the string e is a palindrome
def sum_list_6057(r): total = 0 for x in r: total += x return total
Returns the sum of elements in the list r
def is_palindrome_6058(j): t = j.lower().replace(' ', '') return t == t[::-1]
Checks whether the string j is a palindrome
def contains_digit_6059(v): for ch in v: if ch.isdigit(): return True return False
Checks if the string v contains any digit
def contains_digit_6060(p): for ch in p: if ch.isdigit(): return True return False
Checks if the string p contains any digit
def contains_digit_6061(v): for ch in v: if ch.isdigit(): return True return False
Checks if the string v contains any digit
def sum_list_6062(j): total = 0 for x in j: total += x return total
Returns the sum of elements in the list j
def add_6063(s, v): return s + v
Returns the sum of s and v
def is_palindrome_6064(o): t = o.lower().replace(' ', '') return t == t[::-1]
Checks whether the string o is a palindrome
def reverse_6065(w): return w[::-1]
Reverses the string w
def sum_list_6066(m): total = 0 for x in m: total += x return total
Returns the sum of elements in the list m
def sum_list_6067(g): total = 0 for x in g: total += x return total
Returns the sum of elements in the list g
def sum_list_6068(r): total = 0 for x in r: total += x return total
Returns the sum of elements in the list r
def contains_digit_6069(i): for ch in i: if ch.isdigit(): return True return False
Checks if the string i contains any digit
def sum_list_6070(s): total = 0 for x in s: total += x return total
Returns the sum of elements in the list s
def sum_list_6071(f): total = 0 for x in f: total += x return total
Returns the sum of elements in the list f
def is_palindrome_6072(s): t = s.lower().replace(' ', '') return t == t[::-1]
Checks whether the string s is a palindrome
def reverse_6073(v): return v[::-1]
Reverses the string v
def add_6074(y, i): return y + i
Returns the sum of y and i
def reverse_6075(d): return d[::-1]
Reverses the string d
def is_palindrome_6076(f): t = f.lower().replace(' ', '') return t == t[::-1]
Checks whether the string f is a palindrome
def sum_list_6077(i): total = 0 for x in i: total += x return total
Returns the sum of elements in the list i
def contains_digit_6078(f): for ch in f: if ch.isdigit(): return True return False
Checks if the string f contains any digit
def sum_list_6079(q): total = 0 for x in q: total += x return total
Returns the sum of elements in the list q
def sum_list_6080(l): total = 0 for x in l: total += x return total
Returns the sum of elements in the list l
def add_6081(a, u): return a + u
Returns the sum of a and u
def sum_list_6082(f): total = 0 for x in f: total += x return total
Returns the sum of elements in the list f
def contains_digit_6083(f): for ch in f: if ch.isdigit(): return True return False
Checks if the string f contains any digit
def sum_list_6084(b): total = 0 for x in b: total += x return total
Returns the sum of elements in the list b
def is_palindrome_6085(q): t = q.lower().replace(' ', '') return t == t[::-1]
Checks whether the string q is a palindrome
def add_6086(x, g): return x + g
Returns the sum of x and g
def is_palindrome_6087(s): t = s.lower().replace(' ', '') return t == t[::-1]
Checks whether the string s is a palindrome
def sum_list_6088(g): total = 0 for x in g: total += x return total
Returns the sum of elements in the list g
def add_6089(y, s): return y + s
Returns the sum of y and s
def reverse_6090(y): return y[::-1]
Reverses the string y
def add_6091(b, x): return b + x
Returns the sum of b and x
def add_6092(y, n): return y + n
Returns the sum of y and n
def add_6093(f, y): return f + y
Returns the sum of f and y
def add_6094(g, p): return g + p
Returns the sum of g and p
def reverse_6095(z): return z[::-1]
Reverses the string z
def reverse_6096(o): return o[::-1]
Reverses the string o
def contains_digit_6097(h): for ch in h: if ch.isdigit(): return True return False
Checks if the string h contains any digit
def sum_list_6098(t): total = 0 for x in t: total += x return total
Returns the sum of elements in the list t
def add_6099(z, h): return z + h
Returns the sum of z and h