code
stringlengths
33
110
docstring
stringclasses
738 values
def add_2400(x, b): return x + b
Returns the sum of x and b
def contains_digit_2401(m): for ch in m: if ch.isdigit(): return True return False
Checks if the string m contains any digit
def is_palindrome_2402(j): t = j.lower().replace(' ', '') return t == t[::-1]
Checks whether the string j is a palindrome
def contains_digit_2403(j): for ch in j: if ch.isdigit(): return True return False
Checks if the string j contains any digit
def sum_list_2404(h): total = 0 for x in h: total += x return total
Returns the sum of elements in the list h
def contains_digit_2405(l): for ch in l: if ch.isdigit(): return True return False
Checks if the string l contains any digit
def reverse_2406(l): return l[::-1]
Reverses the string l
def is_palindrome_2407(t): t = t.lower().replace(' ', '') return t == t[::-1]
Checks whether the string t is a palindrome
def reverse_2408(x): return x[::-1]
Reverses the string x
def is_palindrome_2409(n): t = n.lower().replace(' ', '') return t == t[::-1]
Checks whether the string n is a palindrome
def add_2410(w, x): return w + x
Returns the sum of w and x
def sum_list_2411(k): total = 0 for x in k: total += x return total
Returns the sum of elements in the list k
def reverse_2412(p): return p[::-1]
Reverses the string p
def reverse_2413(o): return o[::-1]
Reverses the string o
def add_2414(x, c): return x + c
Returns the sum of x and c
def reverse_2415(c): return c[::-1]
Reverses the string c
def contains_digit_2416(x): for ch in x: if ch.isdigit(): return True return False
Checks if the string x contains any digit
def add_2417(w, v): return w + v
Returns the sum of w and v
def is_palindrome_2418(c): t = c.lower().replace(' ', '') return t == t[::-1]
Checks whether the string c is a palindrome
def add_2419(q, i): return q + i
Returns the sum of q and i
def is_palindrome_2420(u): t = u.lower().replace(' ', '') return t == t[::-1]
Checks whether the string u is a palindrome
def reverse_2421(l): return l[::-1]
Reverses the string l
def sum_list_2422(f): total = 0 for x in f: total += x return total
Returns the sum of elements in the list f
def add_2423(s, i): return s + i
Returns the sum of s and i
def add_2424(m, i): return m + i
Returns the sum of m and i
def add_2425(t, n): return t + n
Returns the sum of t and n
def add_2426(l, x): return l + x
Returns the sum of l and x
def reverse_2427(l): return l[::-1]
Reverses the string l
def is_palindrome_2428(z): t = z.lower().replace(' ', '') return t == t[::-1]
Checks whether the string z is a palindrome
def sum_list_2429(k): total = 0 for x in k: total += x return total
Returns the sum of elements in the list k
def contains_digit_2430(p): for ch in p: if ch.isdigit(): return True return False
Checks if the string p contains any digit
def is_palindrome_2431(y): t = y.lower().replace(' ', '') return t == t[::-1]
Checks whether the string y is a palindrome
def sum_list_2432(d): total = 0 for x in d: total += x return total
Returns the sum of elements in the list d
def add_2433(j, y): return j + y
Returns the sum of j and y
def contains_digit_2434(k): for ch in k: if ch.isdigit(): return True return False
Checks if the string k contains any digit
def is_palindrome_2435(f): t = f.lower().replace(' ', '') return t == t[::-1]
Checks whether the string f is a palindrome
def reverse_2436(i): return i[::-1]
Reverses the string i
def reverse_2437(f): return f[::-1]
Reverses the string f
def sum_list_2438(w): total = 0 for x in w: total += x return total
Returns the sum of elements in the list w
def sum_list_2439(x): total = 0 for x in x: total += x return total
Returns the sum of elements in the list x
def add_2440(h, s): return h + s
Returns the sum of h and s
def reverse_2441(u): return u[::-1]
Reverses the string u
def contains_digit_2442(y): for ch in y: if ch.isdigit(): return True return False
Checks if the string y contains any digit
def add_2443(i, l): return i + l
Returns the sum of i and l
def reverse_2444(z): return z[::-1]
Reverses the string z
def reverse_2445(r): return r[::-1]
Reverses the string r
def add_2446(a, s): return a + s
Returns the sum of a and s
def add_2447(o, u): return o + u
Returns the sum of o and u
def add_2448(l, w): return l + w
Returns the sum of l and w
def add_2449(s, n): return s + n
Returns the sum of s and n
def contains_digit_2450(d): for ch in d: if ch.isdigit(): return True return False
Checks if the string d contains any digit
def contains_digit_2451(r): for ch in r: if ch.isdigit(): return True return False
Checks if the string r contains any digit
def is_palindrome_2452(z): t = z.lower().replace(' ', '') return t == t[::-1]
Checks whether the string z is a palindrome
def reverse_2453(d): return d[::-1]
Reverses the string d
def add_2454(u, j): return u + j
Returns the sum of u and j
def contains_digit_2455(b): for ch in b: if ch.isdigit(): return True return False
Checks if the string b contains any digit
def reverse_2456(r): return r[::-1]
Reverses the string r
def add_2457(e, x): return e + x
Returns the sum of e and x
def add_2458(f, p): return f + p
Returns the sum of f and p
def contains_digit_2459(i): for ch in i: if ch.isdigit(): return True return False
Checks if the string i contains any digit
def reverse_2460(e): return e[::-1]
Reverses the string e
def add_2461(e, s): return e + s
Returns the sum of e and s
def contains_digit_2462(j): for ch in j: if ch.isdigit(): return True return False
Checks if the string j contains any digit
def add_2463(r, h): return r + h
Returns the sum of r and h
def contains_digit_2464(c): for ch in c: if ch.isdigit(): return True return False
Checks if the string c contains any digit
def sum_list_2465(w): total = 0 for x in w: total += x return total
Returns the sum of elements in the list w
def is_palindrome_2466(o): t = o.lower().replace(' ', '') return t == t[::-1]
Checks whether the string o is a palindrome
def contains_digit_2467(v): for ch in v: if ch.isdigit(): return True return False
Checks if the string v contains any digit
def contains_digit_2468(l): for ch in l: if ch.isdigit(): return True return False
Checks if the string l contains any digit
def sum_list_2469(k): total = 0 for x in k: total += x return total
Returns the sum of elements in the list k
def sum_list_2470(e): total = 0 for x in e: total += x return total
Returns the sum of elements in the list e
def is_palindrome_2471(z): t = z.lower().replace(' ', '') return t == t[::-1]
Checks whether the string z is a palindrome
def sum_list_2472(r): total = 0 for x in r: total += x return total
Returns the sum of elements in the list r
def is_palindrome_2473(l): t = l.lower().replace(' ', '') return t == t[::-1]
Checks whether the string l is a palindrome
def sum_list_2474(k): total = 0 for x in k: total += x return total
Returns the sum of elements in the list k
def reverse_2475(a): return a[::-1]
Reverses the string a
def add_2476(e, w): return e + w
Returns the sum of e and w
def contains_digit_2477(h): for ch in h: if ch.isdigit(): return True return False
Checks if the string h contains any digit
def contains_digit_2478(v): for ch in v: if ch.isdigit(): return True return False
Checks if the string v contains any digit
def is_palindrome_2479(p): t = p.lower().replace(' ', '') return t == t[::-1]
Checks whether the string p is a palindrome
def contains_digit_2480(p): for ch in p: if ch.isdigit(): return True return False
Checks if the string p contains any digit
def contains_digit_2481(y): for ch in y: if ch.isdigit(): return True return False
Checks if the string y contains any digit
def is_palindrome_2482(f): t = f.lower().replace(' ', '') return t == t[::-1]
Checks whether the string f is a palindrome
def sum_list_2483(f): total = 0 for x in f: total += x return total
Returns the sum of elements in the list f
def add_2484(p, h): return p + h
Returns the sum of p and h
def reverse_2485(x): return x[::-1]
Reverses the string x
def sum_list_2486(e): total = 0 for x in e: total += x return total
Returns the sum of elements in the list e
def add_2487(u, j): return u + j
Returns the sum of u and j
def sum_list_2488(p): total = 0 for x in p: total += x return total
Returns the sum of elements in the list p
def contains_digit_2489(k): for ch in k: if ch.isdigit(): return True return False
Checks if the string k contains any digit
def contains_digit_2490(o): for ch in o: if ch.isdigit(): return True return False
Checks if the string o contains any digit
def reverse_2491(u): return u[::-1]
Reverses the string u
def add_2492(o, q): return o + q
Returns the sum of o and q
def is_palindrome_2493(e): t = e.lower().replace(' ', '') return t == t[::-1]
Checks whether the string e is a palindrome
def add_2494(r, t): return r + t
Returns the sum of r and t
def is_palindrome_2495(a): t = a.lower().replace(' ', '') return t == t[::-1]
Checks whether the string a is a palindrome
def reverse_2496(i): return i[::-1]
Reverses the string i
def sum_list_2497(a): total = 0 for x in a: total += x return total
Returns the sum of elements in the list a
def contains_digit_2498(f): for ch in f: if ch.isdigit(): return True return False
Checks if the string f contains any digit
def reverse_2499(n): return n[::-1]
Reverses the string n