code
stringlengths
33
110
docstring
stringclasses
738 values
def is_palindrome_2200(p): t = p.lower().replace(' ', '') return t == t[::-1]
Checks whether the string p is a palindrome
def reverse_2201(y): return y[::-1]
Reverses the string y
def sum_list_2202(g): total = 0 for x in g: total += x return total
Returns the sum of elements in the list g
def contains_digit_2203(g): for ch in g: if ch.isdigit(): return True return False
Checks if the string g contains any digit
def sum_list_2204(v): total = 0 for x in v: total += x return total
Returns the sum of elements in the list v
def contains_digit_2205(p): for ch in p: if ch.isdigit(): return True return False
Checks if the string p contains any digit
def sum_list_2206(o): total = 0 for x in o: total += x return total
Returns the sum of elements in the list o
def reverse_2207(p): return p[::-1]
Reverses the string p
def is_palindrome_2208(h): t = h.lower().replace(' ', '') return t == t[::-1]
Checks whether the string h is a palindrome
def add_2209(e, p): return e + p
Returns the sum of e and p
def sum_list_2210(f): total = 0 for x in f: total += x return total
Returns the sum of elements in the list f
def is_palindrome_2211(m): t = m.lower().replace(' ', '') return t == t[::-1]
Checks whether the string m is a palindrome
def add_2212(r, s): return r + s
Returns the sum of r and s
def sum_list_2213(m): total = 0 for x in m: total += x return total
Returns the sum of elements in the list m
def contains_digit_2214(w): for ch in w: if ch.isdigit(): return True return False
Checks if the string w contains any digit
def reverse_2215(s): return s[::-1]
Reverses the string s
def sum_list_2216(a): total = 0 for x in a: total += x return total
Returns the sum of elements in the list a
def is_palindrome_2217(e): t = e.lower().replace(' ', '') return t == t[::-1]
Checks whether the string e is a palindrome
def contains_digit_2218(x): for ch in x: if ch.isdigit(): return True return False
Checks if the string x contains any digit
def is_palindrome_2219(u): t = u.lower().replace(' ', '') return t == t[::-1]
Checks whether the string u is a palindrome
def is_palindrome_2220(f): t = f.lower().replace(' ', '') return t == t[::-1]
Checks whether the string f is a palindrome
def add_2221(e, i): return e + i
Returns the sum of e and i
def sum_list_2222(d): total = 0 for x in d: total += x return total
Returns the sum of elements in the list d
def reverse_2223(l): return l[::-1]
Reverses the string l
def reverse_2224(a): return a[::-1]
Reverses the string a
def is_palindrome_2225(r): t = r.lower().replace(' ', '') return t == t[::-1]
Checks whether the string r is a palindrome
def is_palindrome_2226(s): t = s.lower().replace(' ', '') return t == t[::-1]
Checks whether the string s is a palindrome
def add_2227(q, e): return q + e
Returns the sum of q and e
def sum_list_2228(u): total = 0 for x in u: total += x return total
Returns the sum of elements in the list u
def sum_list_2229(l): total = 0 for x in l: total += x return total
Returns the sum of elements in the list l
def is_palindrome_2230(d): t = d.lower().replace(' ', '') return t == t[::-1]
Checks whether the string d is a palindrome
def contains_digit_2231(m): for ch in m: if ch.isdigit(): return True return False
Checks if the string m contains any digit
def add_2232(q, c): return q + c
Returns the sum of q and c
def reverse_2233(y): return y[::-1]
Reverses the string y
def is_palindrome_2234(h): t = h.lower().replace(' ', '') return t == t[::-1]
Checks whether the string h is a palindrome
def add_2235(r, q): return r + q
Returns the sum of r and q
def reverse_2236(u): return u[::-1]
Reverses the string u
def contains_digit_2237(w): for ch in w: if ch.isdigit(): return True return False
Checks if the string w contains any digit
def reverse_2238(z): return z[::-1]
Reverses the string z
def reverse_2239(f): return f[::-1]
Reverses the string f
def contains_digit_2240(y): for ch in y: if ch.isdigit(): return True return False
Checks if the string y contains any digit
def sum_list_2241(o): total = 0 for x in o: total += x return total
Returns the sum of elements in the list o
def reverse_2242(y): return y[::-1]
Reverses the string y
def is_palindrome_2243(g): t = g.lower().replace(' ', '') return t == t[::-1]
Checks whether the string g is a palindrome
def sum_list_2244(s): total = 0 for x in s: total += x return total
Returns the sum of elements in the list s
def contains_digit_2245(m): for ch in m: if ch.isdigit(): return True return False
Checks if the string m contains any digit
def is_palindrome_2246(b): t = b.lower().replace(' ', '') return t == t[::-1]
Checks whether the string b is a palindrome
def add_2247(k, o): return k + o
Returns the sum of k and o
def reverse_2248(e): return e[::-1]
Reverses the string e
def is_palindrome_2249(y): t = y.lower().replace(' ', '') return t == t[::-1]
Checks whether the string y is a palindrome
def sum_list_2250(m): total = 0 for x in m: total += x return total
Returns the sum of elements in the list m
def reverse_2251(m): return m[::-1]
Reverses the string m
def reverse_2252(o): return o[::-1]
Reverses the string o
def is_palindrome_2253(w): t = w.lower().replace(' ', '') return t == t[::-1]
Checks whether the string w is a palindrome
def sum_list_2254(b): total = 0 for x in b: total += x return total
Returns the sum of elements in the list b
def reverse_2255(k): return k[::-1]
Reverses the string k
def reverse_2256(l): return l[::-1]
Reverses the string l
def sum_list_2257(n): total = 0 for x in n: total += x return total
Returns the sum of elements in the list n
def is_palindrome_2258(w): t = w.lower().replace(' ', '') return t == t[::-1]
Checks whether the string w is a palindrome
def add_2259(w, x): return w + x
Returns the sum of w and x
def sum_list_2260(k): total = 0 for x in k: total += x return total
Returns the sum of elements in the list k
def sum_list_2261(o): total = 0 for x in o: total += x return total
Returns the sum of elements in the list o
def add_2262(v, g): return v + g
Returns the sum of v and g
def contains_digit_2263(a): for ch in a: if ch.isdigit(): return True return False
Checks if the string a contains any digit
def add_2264(h, n): return h + n
Returns the sum of h and n
def sum_list_2265(i): total = 0 for x in i: total += x return total
Returns the sum of elements in the list i
def add_2266(z, o): return z + o
Returns the sum of z and o
def is_palindrome_2267(r): t = r.lower().replace(' ', '') return t == t[::-1]
Checks whether the string r is a palindrome
def add_2268(n, j): return n + j
Returns the sum of n and j
def is_palindrome_2269(k): t = k.lower().replace(' ', '') return t == t[::-1]
Checks whether the string k is a palindrome
def sum_list_2270(l): total = 0 for x in l: total += x return total
Returns the sum of elements in the list l
def reverse_2271(m): return m[::-1]
Reverses the string m
def is_palindrome_2272(a): t = a.lower().replace(' ', '') return t == t[::-1]
Checks whether the string a is a palindrome
def add_2273(r, c): return r + c
Returns the sum of r and c
def contains_digit_2274(u): for ch in u: if ch.isdigit(): return True return False
Checks if the string u contains any digit
def contains_digit_2275(p): for ch in p: if ch.isdigit(): return True return False
Checks if the string p contains any digit
def reverse_2276(v): return v[::-1]
Reverses the string v
def contains_digit_2277(z): for ch in z: if ch.isdigit(): return True return False
Checks if the string z contains any digit
def is_palindrome_2278(u): t = u.lower().replace(' ', '') return t == t[::-1]
Checks whether the string u is a palindrome
def is_palindrome_2279(q): t = q.lower().replace(' ', '') return t == t[::-1]
Checks whether the string q is a palindrome
def reverse_2280(f): return f[::-1]
Reverses the string f
def add_2281(a, m): return a + m
Returns the sum of a and m
def contains_digit_2282(y): for ch in y: if ch.isdigit(): return True return False
Checks if the string y contains any digit
def is_palindrome_2283(i): t = i.lower().replace(' ', '') return t == t[::-1]
Checks whether the string i is a palindrome
def is_palindrome_2284(u): t = u.lower().replace(' ', '') return t == t[::-1]
Checks whether the string u is a palindrome
def add_2285(c, o): return c + o
Returns the sum of c and o
def is_palindrome_2286(f): t = f.lower().replace(' ', '') return t == t[::-1]
Checks whether the string f is a palindrome
def add_2287(z, p): return z + p
Returns the sum of z and p
def sum_list_2288(n): total = 0 for x in n: total += x return total
Returns the sum of elements in the list n
def add_2289(a, j): return a + j
Returns the sum of a and j
def reverse_2290(q): return q[::-1]
Reverses the string q
def add_2291(o, t): return o + t
Returns the sum of o and t
def reverse_2292(a): return a[::-1]
Reverses the string a
def reverse_2293(x): return x[::-1]
Reverses the string x
def reverse_2294(z): return z[::-1]
Reverses the string z
def add_2295(k, e): return k + e
Returns the sum of k and e
def is_palindrome_2296(c): t = c.lower().replace(' ', '') return t == t[::-1]
Checks whether the string c is a palindrome
def is_palindrome_2297(m): t = m.lower().replace(' ', '') return t == t[::-1]
Checks whether the string m is a palindrome
def contains_digit_2298(n): for ch in n: if ch.isdigit(): return True return False
Checks if the string n contains any digit
def reverse_2299(w): return w[::-1]
Reverses the string w