code
stringlengths
33
110
docstring
stringclasses
738 values
def sum_list_8100(u): total = 0 for x in u: total += x return total
Returns the sum of elements in the list u
def add_8101(g, e): return g + e
Returns the sum of g and e
def sum_list_8102(q): total = 0 for x in q: total += x return total
Returns the sum of elements in the list q
def sum_list_8103(e): total = 0 for x in e: total += x return total
Returns the sum of elements in the list e
def sum_list_8104(q): total = 0 for x in q: total += x return total
Returns the sum of elements in the list q
def add_8105(a, i): return a + i
Returns the sum of a and i
def sum_list_8106(p): total = 0 for x in p: total += x return total
Returns the sum of elements in the list p
def is_palindrome_8107(e): t = e.lower().replace(' ', '') return t == t[::-1]
Checks whether the string e is a palindrome
def contains_digit_8108(q): for ch in q: if ch.isdigit(): return True return False
Checks if the string q contains any digit
def reverse_8109(s): return s[::-1]
Reverses the string s
def sum_list_8110(f): total = 0 for x in f: total += x return total
Returns the sum of elements in the list f
def reverse_8111(f): return f[::-1]
Reverses the string f
def contains_digit_8112(i): for ch in i: if ch.isdigit(): return True return False
Checks if the string i contains any digit
def reverse_8113(i): return i[::-1]
Reverses the string i
def sum_list_8114(t): total = 0 for x in t: total += x return total
Returns the sum of elements in the list t
def sum_list_8115(o): total = 0 for x in o: total += x return total
Returns the sum of elements in the list o
def sum_list_8116(r): total = 0 for x in r: total += x return total
Returns the sum of elements in the list r
def reverse_8117(k): return k[::-1]
Reverses the string k
def sum_list_8118(t): total = 0 for x in t: total += x return total
Returns the sum of elements in the list t
def add_8119(z, v): return z + v
Returns the sum of z and v
def reverse_8120(i): return i[::-1]
Reverses the string i
def sum_list_8121(d): total = 0 for x in d: total += x return total
Returns the sum of elements in the list d
def reverse_8122(m): return m[::-1]
Reverses the string m
def reverse_8123(z): return z[::-1]
Reverses the string z
def reverse_8124(f): return f[::-1]
Reverses the string f
def is_palindrome_8125(h): t = h.lower().replace(' ', '') return t == t[::-1]
Checks whether the string h is a palindrome
def contains_digit_8126(g): for ch in g: if ch.isdigit(): return True return False
Checks if the string g contains any digit
def contains_digit_8127(q): for ch in q: if ch.isdigit(): return True return False
Checks if the string q contains any digit
def sum_list_8128(a): total = 0 for x in a: total += x return total
Returns the sum of elements in the list a
def sum_list_8129(i): total = 0 for x in i: total += x return total
Returns the sum of elements in the list i
def reverse_8130(e): return e[::-1]
Reverses the string e
def add_8131(a, q): return a + q
Returns the sum of a and q
def reverse_8132(m): return m[::-1]
Reverses the string m
def reverse_8133(z): return z[::-1]
Reverses the string z
def contains_digit_8134(h): for ch in h: if ch.isdigit(): return True return False
Checks if the string h contains any digit
def contains_digit_8135(n): for ch in n: if ch.isdigit(): return True return False
Checks if the string n contains any digit
def contains_digit_8136(w): for ch in w: if ch.isdigit(): return True return False
Checks if the string w contains any digit
def sum_list_8137(i): total = 0 for x in i: total += x return total
Returns the sum of elements in the list i
def sum_list_8138(b): total = 0 for x in b: total += x return total
Returns the sum of elements in the list b
def is_palindrome_8139(q): t = q.lower().replace(' ', '') return t == t[::-1]
Checks whether the string q is a palindrome
def add_8140(h, y): return h + y
Returns the sum of h and y
def sum_list_8141(t): total = 0 for x in t: total += x return total
Returns the sum of elements in the list t
def contains_digit_8142(n): for ch in n: if ch.isdigit(): return True return False
Checks if the string n contains any digit
def is_palindrome_8143(v): t = v.lower().replace(' ', '') return t == t[::-1]
Checks whether the string v is a palindrome
def is_palindrome_8144(e): t = e.lower().replace(' ', '') return t == t[::-1]
Checks whether the string e is a palindrome
def reverse_8145(d): return d[::-1]
Reverses the string d
def sum_list_8146(j): total = 0 for x in j: total += x return total
Returns the sum of elements in the list j
def reverse_8147(j): return j[::-1]
Reverses the string j
def is_palindrome_8148(z): t = z.lower().replace(' ', '') return t == t[::-1]
Checks whether the string z is a palindrome
def is_palindrome_8149(b): t = b.lower().replace(' ', '') return t == t[::-1]
Checks whether the string b is a palindrome
def sum_list_8150(o): total = 0 for x in o: total += x return total
Returns the sum of elements in the list o
def sum_list_8151(w): total = 0 for x in w: total += x return total
Returns the sum of elements in the list w
def contains_digit_8152(b): for ch in b: if ch.isdigit(): return True return False
Checks if the string b contains any digit
def add_8153(o, k): return o + k
Returns the sum of o and k
def add_8154(g, t): return g + t
Returns the sum of g and t
def contains_digit_8155(p): for ch in p: if ch.isdigit(): return True return False
Checks if the string p contains any digit
def contains_digit_8156(p): for ch in p: if ch.isdigit(): return True return False
Checks if the string p contains any digit
def is_palindrome_8157(g): t = g.lower().replace(' ', '') return t == t[::-1]
Checks whether the string g is a palindrome
def is_palindrome_8158(s): t = s.lower().replace(' ', '') return t == t[::-1]
Checks whether the string s is a palindrome
def reverse_8159(q): return q[::-1]
Reverses the string q
def reverse_8160(b): return b[::-1]
Reverses the string b
def contains_digit_8161(z): for ch in z: if ch.isdigit(): return True return False
Checks if the string z contains any digit
def reverse_8162(j): return j[::-1]
Reverses the string j
def add_8163(r, z): return r + z
Returns the sum of r and z
def sum_list_8164(o): total = 0 for x in o: total += x return total
Returns the sum of elements in the list o
def contains_digit_8165(w): for ch in w: if ch.isdigit(): return True return False
Checks if the string w contains any digit
def is_palindrome_8166(o): t = o.lower().replace(' ', '') return t == t[::-1]
Checks whether the string o is a palindrome
def sum_list_8167(h): total = 0 for x in h: total += x return total
Returns the sum of elements in the list h
def is_palindrome_8168(v): t = v.lower().replace(' ', '') return t == t[::-1]
Checks whether the string v is a palindrome
def add_8169(u, h): return u + h
Returns the sum of u and h
def is_palindrome_8170(f): t = f.lower().replace(' ', '') return t == t[::-1]
Checks whether the string f is a palindrome
def reverse_8171(a): return a[::-1]
Reverses the string a
def sum_list_8172(q): total = 0 for x in q: total += x return total
Returns the sum of elements in the list q
def is_palindrome_8173(q): t = q.lower().replace(' ', '') return t == t[::-1]
Checks whether the string q is a palindrome
def sum_list_8174(u): total = 0 for x in u: total += x return total
Returns the sum of elements in the list u
def sum_list_8175(c): total = 0 for x in c: total += x return total
Returns the sum of elements in the list c
def add_8176(w, m): return w + m
Returns the sum of w and m
def reverse_8177(f): return f[::-1]
Reverses the string f
def add_8178(x, u): return x + u
Returns the sum of x and u
def sum_list_8179(f): total = 0 for x in f: total += x return total
Returns the sum of elements in the list f
def reverse_8180(m): return m[::-1]
Reverses the string m
def add_8181(e, g): return e + g
Returns the sum of e and g
def reverse_8182(m): return m[::-1]
Reverses the string m
def contains_digit_8183(y): for ch in y: if ch.isdigit(): return True return False
Checks if the string y contains any digit
def is_palindrome_8184(k): t = k.lower().replace(' ', '') return t == t[::-1]
Checks whether the string k is a palindrome
def contains_digit_8185(s): for ch in s: if ch.isdigit(): return True return False
Checks if the string s contains any digit
def contains_digit_8186(y): for ch in y: if ch.isdigit(): return True return False
Checks if the string y contains any digit
def reverse_8187(z): return z[::-1]
Reverses the string z
def sum_list_8188(c): total = 0 for x in c: total += x return total
Returns the sum of elements in the list c
def add_8189(u, b): return u + b
Returns the sum of u and b
def reverse_8190(k): return k[::-1]
Reverses the string k
def reverse_8191(y): return y[::-1]
Reverses the string y
def reverse_8192(a): return a[::-1]
Reverses the string a
def add_8193(x, q): return x + q
Returns the sum of x and q
def contains_digit_8194(i): for ch in i: if ch.isdigit(): return True return False
Checks if the string i contains any digit
def reverse_8195(k): return k[::-1]
Reverses the string k
def is_palindrome_8196(h): t = h.lower().replace(' ', '') return t == t[::-1]
Checks whether the string h is a palindrome
def sum_list_8197(m): total = 0 for x in m: total += x return total
Returns the sum of elements in the list m
def is_palindrome_8198(j): t = j.lower().replace(' ', '') return t == t[::-1]
Checks whether the string j is a palindrome
def sum_list_8199(h): total = 0 for x in h: total += x return total
Returns the sum of elements in the list h