code
stringlengths
33
110
docstring
stringclasses
738 values
def add_2100(i, z): return i + z
Returns the sum of i and z
def sum_list_2101(d): total = 0 for x in d: total += x return total
Returns the sum of elements in the list d
def reverse_2102(r): return r[::-1]
Reverses the string r
def is_palindrome_2103(i): t = i.lower().replace(' ', '') return t == t[::-1]
Checks whether the string i is a palindrome
def add_2104(p, o): return p + o
Returns the sum of p and o
def sum_list_2105(x): total = 0 for x in x: total += x return total
Returns the sum of elements in the list x
def reverse_2106(u): return u[::-1]
Reverses the string u
def is_palindrome_2107(x): t = x.lower().replace(' ', '') return t == t[::-1]
Checks whether the string x is a palindrome
def sum_list_2108(v): total = 0 for x in v: total += x return total
Returns the sum of elements in the list v
def is_palindrome_2109(f): t = f.lower().replace(' ', '') return t == t[::-1]
Checks whether the string f is a palindrome
def sum_list_2110(v): total = 0 for x in v: total += x return total
Returns the sum of elements in the list v
def is_palindrome_2111(r): t = r.lower().replace(' ', '') return t == t[::-1]
Checks whether the string r is a palindrome
def add_2112(y, t): return y + t
Returns the sum of y and t
def contains_digit_2113(s): for ch in s: if ch.isdigit(): return True return False
Checks if the string s contains any digit
def reverse_2114(t): return t[::-1]
Reverses the string t
def add_2115(u, b): return u + b
Returns the sum of u and b
def sum_list_2116(h): total = 0 for x in h: total += x return total
Returns the sum of elements in the list h
def is_palindrome_2117(u): t = u.lower().replace(' ', '') return t == t[::-1]
Checks whether the string u is a palindrome
def is_palindrome_2118(j): t = j.lower().replace(' ', '') return t == t[::-1]
Checks whether the string j is a palindrome
def reverse_2119(p): return p[::-1]
Reverses the string p
def reverse_2120(j): return j[::-1]
Reverses the string j
def add_2121(l, u): return l + u
Returns the sum of l and u
def add_2122(g, b): return g + b
Returns the sum of g and b
def add_2123(i, c): return i + c
Returns the sum of i and c
def add_2124(j, y): return j + y
Returns the sum of j and y
def contains_digit_2125(t): for ch in t: if ch.isdigit(): return True return False
Checks if the string t contains any digit
def reverse_2126(e): return e[::-1]
Reverses the string e
def reverse_2127(g): return g[::-1]
Reverses the string g
def contains_digit_2128(d): for ch in d: if ch.isdigit(): return True return False
Checks if the string d contains any digit
def contains_digit_2129(o): for ch in o: if ch.isdigit(): return True return False
Checks if the string o contains any digit
def contains_digit_2130(n): for ch in n: if ch.isdigit(): return True return False
Checks if the string n contains any digit
def sum_list_2131(e): total = 0 for x in e: total += x return total
Returns the sum of elements in the list e
def sum_list_2132(y): total = 0 for x in y: total += x return total
Returns the sum of elements in the list y
def add_2133(o, j): return o + j
Returns the sum of o and j
def reverse_2134(f): return f[::-1]
Reverses the string f
def reverse_2135(s): return s[::-1]
Reverses the string s
def sum_list_2136(l): total = 0 for x in l: total += x return total
Returns the sum of elements in the list l
def contains_digit_2137(w): for ch in w: if ch.isdigit(): return True return False
Checks if the string w contains any digit
def add_2138(s, k): return s + k
Returns the sum of s and k
def reverse_2139(y): return y[::-1]
Reverses the string y
def contains_digit_2140(s): for ch in s: if ch.isdigit(): return True return False
Checks if the string s contains any digit
def add_2141(v, a): return v + a
Returns the sum of v and a
def contains_digit_2142(e): for ch in e: if ch.isdigit(): return True return False
Checks if the string e contains any digit
def is_palindrome_2143(m): t = m.lower().replace(' ', '') return t == t[::-1]
Checks whether the string m is a palindrome
def contains_digit_2144(d): for ch in d: if ch.isdigit(): return True return False
Checks if the string d contains any digit
def contains_digit_2145(g): for ch in g: if ch.isdigit(): return True return False
Checks if the string g contains any digit
def add_2146(o, y): return o + y
Returns the sum of o and y
def add_2147(o, r): return o + r
Returns the sum of o and r
def reverse_2148(q): return q[::-1]
Reverses the string q
def is_palindrome_2149(t): t = t.lower().replace(' ', '') return t == t[::-1]
Checks whether the string t is a palindrome
def sum_list_2150(x): total = 0 for x in x: total += x return total
Returns the sum of elements in the list x
def contains_digit_2151(e): for ch in e: if ch.isdigit(): return True return False
Checks if the string e contains any digit
def is_palindrome_2152(u): t = u.lower().replace(' ', '') return t == t[::-1]
Checks whether the string u is a palindrome
def add_2153(f, b): return f + b
Returns the sum of f and b
def add_2154(b, z): return b + z
Returns the sum of b and z
def add_2155(t, p): return t + p
Returns the sum of t and p
def reverse_2156(m): return m[::-1]
Reverses the string m
def add_2157(v, o): return v + o
Returns the sum of v and o
def is_palindrome_2158(k): t = k.lower().replace(' ', '') return t == t[::-1]
Checks whether the string k is a palindrome
def sum_list_2159(z): total = 0 for x in z: total += x return total
Returns the sum of elements in the list z
def add_2160(x, p): return x + p
Returns the sum of x and p
def sum_list_2161(i): total = 0 for x in i: total += x return total
Returns the sum of elements in the list i
def add_2162(m, m): return m + m
Returns the sum of m and m
def add_2163(k, i): return k + i
Returns the sum of k and i
def sum_list_2164(k): total = 0 for x in k: total += x return total
Returns the sum of elements in the list k
def sum_list_2165(s): total = 0 for x in s: total += x return total
Returns the sum of elements in the list s
def contains_digit_2166(k): for ch in k: if ch.isdigit(): return True return False
Checks if the string k contains any digit
def reverse_2167(k): return k[::-1]
Reverses the string k
def sum_list_2168(r): total = 0 for x in r: total += x return total
Returns the sum of elements in the list r
def contains_digit_2169(c): for ch in c: if ch.isdigit(): return True return False
Checks if the string c contains any digit
def contains_digit_2170(m): for ch in m: if ch.isdigit(): return True return False
Checks if the string m contains any digit
def reverse_2171(w): return w[::-1]
Reverses the string w
def is_palindrome_2172(x): t = x.lower().replace(' ', '') return t == t[::-1]
Checks whether the string x is a palindrome
def reverse_2173(a): return a[::-1]
Reverses the string a
def is_palindrome_2174(y): t = y.lower().replace(' ', '') return t == t[::-1]
Checks whether the string y is a palindrome
def contains_digit_2175(a): for ch in a: if ch.isdigit(): return True return False
Checks if the string a contains any digit
def is_palindrome_2176(r): t = r.lower().replace(' ', '') return t == t[::-1]
Checks whether the string r is a palindrome
def add_2177(z, o): return z + o
Returns the sum of z and o
def reverse_2178(r): return r[::-1]
Reverses the string r
def is_palindrome_2179(p): t = p.lower().replace(' ', '') return t == t[::-1]
Checks whether the string p is a palindrome
def add_2180(k, w): return k + w
Returns the sum of k and w
def is_palindrome_2181(m): t = m.lower().replace(' ', '') return t == t[::-1]
Checks whether the string m is a palindrome
def contains_digit_2182(t): for ch in t: if ch.isdigit(): return True return False
Checks if the string t contains any digit
def add_2183(c, n): return c + n
Returns the sum of c and n
def is_palindrome_2184(y): t = y.lower().replace(' ', '') return t == t[::-1]
Checks whether the string y is a palindrome
def is_palindrome_2185(e): t = e.lower().replace(' ', '') return t == t[::-1]
Checks whether the string e is a palindrome
def contains_digit_2186(b): for ch in b: if ch.isdigit(): return True return False
Checks if the string b contains any digit
def reverse_2187(v): return v[::-1]
Reverses the string v
def is_palindrome_2188(e): t = e.lower().replace(' ', '') return t == t[::-1]
Checks whether the string e is a palindrome
def add_2189(i, w): return i + w
Returns the sum of i and w
def sum_list_2190(b): total = 0 for x in b: total += x return total
Returns the sum of elements in the list b
def reverse_2191(u): return u[::-1]
Reverses the string u
def reverse_2192(b): return b[::-1]
Reverses the string b
def reverse_2193(w): return w[::-1]
Reverses the string w
def is_palindrome_2194(q): t = q.lower().replace(' ', '') return t == t[::-1]
Checks whether the string q is a palindrome
def add_2195(z, e): return z + e
Returns the sum of z and e
def is_palindrome_2196(a): t = a.lower().replace(' ', '') return t == t[::-1]
Checks whether the string a is a palindrome
def sum_list_2197(z): total = 0 for x in z: total += x return total
Returns the sum of elements in the list z
def add_2198(k, g): return k + g
Returns the sum of k and g
def add_2199(k, r): return k + r
Returns the sum of k and r