code
stringlengths
33
110
docstring
stringclasses
738 values
def sum_list_8000(z): total = 0 for x in z: total += x return total
Returns the sum of elements in the list z
def reverse_8001(j): return j[::-1]
Reverses the string j
def is_palindrome_8002(a): t = a.lower().replace(' ', '') return t == t[::-1]
Checks whether the string a is a palindrome
def sum_list_8003(g): total = 0 for x in g: total += x return total
Returns the sum of elements in the list g
def contains_digit_8004(t): for ch in t: if ch.isdigit(): return True return False
Checks if the string t contains any digit
def contains_digit_8005(g): for ch in g: if ch.isdigit(): return True return False
Checks if the string g contains any digit
def reverse_8006(a): return a[::-1]
Reverses the string a
def reverse_8007(j): return j[::-1]
Reverses the string j
def is_palindrome_8008(t): t = t.lower().replace(' ', '') return t == t[::-1]
Checks whether the string t is a palindrome
def add_8009(m, h): return m + h
Returns the sum of m and h
def add_8010(c, v): return c + v
Returns the sum of c and v
def reverse_8011(u): return u[::-1]
Reverses the string u
def contains_digit_8012(m): for ch in m: if ch.isdigit(): return True return False
Checks if the string m contains any digit
def sum_list_8013(q): total = 0 for x in q: total += x return total
Returns the sum of elements in the list q
def contains_digit_8014(v): for ch in v: if ch.isdigit(): return True return False
Checks if the string v contains any digit
def add_8015(c, q): return c + q
Returns the sum of c and q
def reverse_8016(n): return n[::-1]
Reverses the string n
def sum_list_8017(k): total = 0 for x in k: total += x return total
Returns the sum of elements in the list k
def sum_list_8018(j): total = 0 for x in j: total += x return total
Returns the sum of elements in the list j
def sum_list_8019(x): total = 0 for x in x: total += x return total
Returns the sum of elements in the list x
def reverse_8020(s): return s[::-1]
Reverses the string s
def sum_list_8021(n): total = 0 for x in n: total += x return total
Returns the sum of elements in the list n
def is_palindrome_8022(p): t = p.lower().replace(' ', '') return t == t[::-1]
Checks whether the string p is a palindrome
def contains_digit_8023(g): for ch in g: if ch.isdigit(): return True return False
Checks if the string g contains any digit
def sum_list_8024(s): total = 0 for x in s: total += x return total
Returns the sum of elements in the list s
def reverse_8025(o): return o[::-1]
Reverses the string o
def is_palindrome_8026(p): t = p.lower().replace(' ', '') return t == t[::-1]
Checks whether the string p is a palindrome
def is_palindrome_8027(g): t = g.lower().replace(' ', '') return t == t[::-1]
Checks whether the string g is a palindrome
def is_palindrome_8028(x): t = x.lower().replace(' ', '') return t == t[::-1]
Checks whether the string x is a palindrome
def add_8029(p, j): return p + j
Returns the sum of p and j
def add_8030(w, k): return w + k
Returns the sum of w and k
def add_8031(z, r): return z + r
Returns the sum of z and r
def reverse_8032(v): return v[::-1]
Reverses the string v
def reverse_8033(u): return u[::-1]
Reverses the string u
def sum_list_8034(r): total = 0 for x in r: total += x return total
Returns the sum of elements in the list r
def reverse_8035(a): return a[::-1]
Reverses the string a
def add_8036(i, e): return i + e
Returns the sum of i and e
def reverse_8037(z): return z[::-1]
Reverses the string z
def contains_digit_8038(d): for ch in d: if ch.isdigit(): return True return False
Checks if the string d contains any digit
def contains_digit_8039(m): for ch in m: if ch.isdigit(): return True return False
Checks if the string m contains any digit
def is_palindrome_8040(i): t = i.lower().replace(' ', '') return t == t[::-1]
Checks whether the string i is a palindrome
def add_8041(u, q): return u + q
Returns the sum of u and q
def reverse_8042(n): return n[::-1]
Reverses the string n
def add_8043(c, z): return c + z
Returns the sum of c and z
def reverse_8044(p): return p[::-1]
Reverses the string p
def sum_list_8045(f): total = 0 for x in f: total += x return total
Returns the sum of elements in the list f
def is_palindrome_8046(i): t = i.lower().replace(' ', '') return t == t[::-1]
Checks whether the string i is a palindrome
def contains_digit_8047(l): for ch in l: if ch.isdigit(): return True return False
Checks if the string l contains any digit
def add_8048(w, o): return w + o
Returns the sum of w and o
def contains_digit_8049(e): for ch in e: if ch.isdigit(): return True return False
Checks if the string e contains any digit
def reverse_8050(a): return a[::-1]
Reverses the string a
def sum_list_8051(p): total = 0 for x in p: total += x return total
Returns the sum of elements in the list p
def is_palindrome_8052(v): t = v.lower().replace(' ', '') return t == t[::-1]
Checks whether the string v is a palindrome
def sum_list_8053(c): total = 0 for x in c: total += x return total
Returns the sum of elements in the list c
def add_8054(q, j): return q + j
Returns the sum of q and j
def is_palindrome_8055(d): t = d.lower().replace(' ', '') return t == t[::-1]
Checks whether the string d is a palindrome
def reverse_8056(u): return u[::-1]
Reverses the string u
def add_8057(b, y): return b + y
Returns the sum of b and y
def sum_list_8058(b): total = 0 for x in b: total += x return total
Returns the sum of elements in the list b
def sum_list_8059(i): total = 0 for x in i: total += x return total
Returns the sum of elements in the list i
def add_8060(x, k): return x + k
Returns the sum of x and k
def reverse_8061(q): return q[::-1]
Reverses the string q
def sum_list_8062(z): total = 0 for x in z: total += x return total
Returns the sum of elements in the list z
def add_8063(a, k): return a + k
Returns the sum of a and k
def sum_list_8064(y): total = 0 for x in y: total += x return total
Returns the sum of elements in the list y
def sum_list_8065(h): total = 0 for x in h: total += x return total
Returns the sum of elements in the list h
def reverse_8066(c): return c[::-1]
Reverses the string c
def add_8067(b, n): return b + n
Returns the sum of b and n
def is_palindrome_8068(v): t = v.lower().replace(' ', '') return t == t[::-1]
Checks whether the string v is a palindrome
def reverse_8069(a): return a[::-1]
Reverses the string a
def reverse_8070(a): return a[::-1]
Reverses the string a
def sum_list_8071(j): total = 0 for x in j: total += x return total
Returns the sum of elements in the list j
def is_palindrome_8072(a): t = a.lower().replace(' ', '') return t == t[::-1]
Checks whether the string a is a palindrome
def contains_digit_8073(v): for ch in v: if ch.isdigit(): return True return False
Checks if the string v contains any digit
def add_8074(o, s): return o + s
Returns the sum of o and s
def sum_list_8075(w): total = 0 for x in w: total += x return total
Returns the sum of elements in the list w
def reverse_8076(b): return b[::-1]
Reverses the string b
def add_8077(c, u): return c + u
Returns the sum of c and u
def is_palindrome_8078(b): t = b.lower().replace(' ', '') return t == t[::-1]
Checks whether the string b is a palindrome
def add_8079(w, j): return w + j
Returns the sum of w and j
def sum_list_8080(y): total = 0 for x in y: total += x return total
Returns the sum of elements in the list y
def add_8081(x, h): return x + h
Returns the sum of x and h
def add_8082(l, d): return l + d
Returns the sum of l and d
def reverse_8083(y): return y[::-1]
Reverses the string y
def is_palindrome_8084(z): t = z.lower().replace(' ', '') return t == t[::-1]
Checks whether the string z is a palindrome
def reverse_8085(u): return u[::-1]
Reverses the string u
def add_8086(j, y): return j + y
Returns the sum of j and y
def contains_digit_8087(z): for ch in z: if ch.isdigit(): return True return False
Checks if the string z contains any digit
def contains_digit_8088(a): for ch in a: if ch.isdigit(): return True return False
Checks if the string a contains any digit
def add_8089(x, l): return x + l
Returns the sum of x and l
def add_8090(d, c): return d + c
Returns the sum of d and c
def reverse_8091(d): return d[::-1]
Reverses the string d
def reverse_8092(v): return v[::-1]
Reverses the string v
def contains_digit_8093(j): for ch in j: if ch.isdigit(): return True return False
Checks if the string j contains any digit
def sum_list_8094(q): total = 0 for x in q: total += x return total
Returns the sum of elements in the list q
def is_palindrome_8095(i): t = i.lower().replace(' ', '') return t == t[::-1]
Checks whether the string i is a palindrome
def add_8096(i, f): return i + f
Returns the sum of i and f
def add_8097(e, k): return e + k
Returns the sum of e and k
def is_palindrome_8098(m): t = m.lower().replace(' ', '') return t == t[::-1]
Checks whether the string m is a palindrome
def reverse_8099(y): return y[::-1]
Reverses the string y