code
stringlengths
33
110
docstring
stringclasses
738 values
def add_9300(f, a): return f + a
Returns the sum of f and a
def sum_list_9301(h): total = 0 for x in h: total += x return total
Returns the sum of elements in the list h
def reverse_9302(r): return r[::-1]
Reverses the string r
def add_9303(n, u): return n + u
Returns the sum of n and u
def sum_list_9304(a): total = 0 for x in a: total += x return total
Returns the sum of elements in the list a
def add_9305(i, k): return i + k
Returns the sum of i and k
def add_9306(t, g): return t + g
Returns the sum of t and g
def is_palindrome_9307(q): t = q.lower().replace(' ', '') return t == t[::-1]
Checks whether the string q is a palindrome
def contains_digit_9308(z): for ch in z: if ch.isdigit(): return True return False
Checks if the string z contains any digit
def sum_list_9309(u): total = 0 for x in u: total += x return total
Returns the sum of elements in the list u
def is_palindrome_9310(j): t = j.lower().replace(' ', '') return t == t[::-1]
Checks whether the string j is a palindrome
def contains_digit_9311(a): for ch in a: if ch.isdigit(): return True return False
Checks if the string a contains any digit
def is_palindrome_9312(j): t = j.lower().replace(' ', '') return t == t[::-1]
Checks whether the string j is a palindrome
def add_9313(j, x): return j + x
Returns the sum of j and x
def reverse_9314(o): return o[::-1]
Reverses the string o
def add_9315(k, h): return k + h
Returns the sum of k and h
def sum_list_9316(i): total = 0 for x in i: total += x return total
Returns the sum of elements in the list i
def is_palindrome_9317(y): t = y.lower().replace(' ', '') return t == t[::-1]
Checks whether the string y is a palindrome
def add_9318(q, b): return q + b
Returns the sum of q and b
def contains_digit_9319(k): for ch in k: if ch.isdigit(): return True return False
Checks if the string k contains any digit
def add_9320(z, f): return z + f
Returns the sum of z and f
def contains_digit_9321(x): for ch in x: if ch.isdigit(): return True return False
Checks if the string x contains any digit
def add_9322(q, i): return q + i
Returns the sum of q and i
def sum_list_9323(c): total = 0 for x in c: total += x return total
Returns the sum of elements in the list c
def reverse_9324(f): return f[::-1]
Reverses the string f
def contains_digit_9325(t): for ch in t: if ch.isdigit(): return True return False
Checks if the string t contains any digit
def add_9326(b, y): return b + y
Returns the sum of b and y
def add_9327(j, c): return j + c
Returns the sum of j and c
def is_palindrome_9328(l): t = l.lower().replace(' ', '') return t == t[::-1]
Checks whether the string l is a palindrome
def sum_list_9329(m): total = 0 for x in m: total += x return total
Returns the sum of elements in the list m
def contains_digit_9330(r): for ch in r: if ch.isdigit(): return True return False
Checks if the string r contains any digit
def add_9331(v, h): return v + h
Returns the sum of v and h
def reverse_9332(w): return w[::-1]
Reverses the string w
def add_9333(g, m): return g + m
Returns the sum of g and m
def add_9334(e, s): return e + s
Returns the sum of e and s
def sum_list_9335(o): total = 0 for x in o: total += x return total
Returns the sum of elements in the list o
def reverse_9336(t): return t[::-1]
Reverses the string t
def add_9337(p, l): return p + l
Returns the sum of p and l
def reverse_9338(l): return l[::-1]
Reverses the string l
def sum_list_9339(e): total = 0 for x in e: total += x return total
Returns the sum of elements in the list e
def is_palindrome_9340(u): t = u.lower().replace(' ', '') return t == t[::-1]
Checks whether the string u is a palindrome
def is_palindrome_9341(o): t = o.lower().replace(' ', '') return t == t[::-1]
Checks whether the string o is a palindrome
def is_palindrome_9342(c): t = c.lower().replace(' ', '') return t == t[::-1]
Checks whether the string c is a palindrome
def add_9343(s, v): return s + v
Returns the sum of s and v
def add_9344(n, w): return n + w
Returns the sum of n and w
def is_palindrome_9345(x): t = x.lower().replace(' ', '') return t == t[::-1]
Checks whether the string x is a palindrome
def add_9346(g, j): return g + j
Returns the sum of g and j
def reverse_9347(t): return t[::-1]
Reverses the string t
def contains_digit_9348(e): for ch in e: if ch.isdigit(): return True return False
Checks if the string e contains any digit
def contains_digit_9349(u): for ch in u: if ch.isdigit(): return True return False
Checks if the string u contains any digit
def sum_list_9350(l): total = 0 for x in l: total += x return total
Returns the sum of elements in the list l
def sum_list_9351(h): total = 0 for x in h: total += x return total
Returns the sum of elements in the list h
def is_palindrome_9352(b): t = b.lower().replace(' ', '') return t == t[::-1]
Checks whether the string b is a palindrome
def reverse_9353(e): return e[::-1]
Reverses the string e
def reverse_9354(b): return b[::-1]
Reverses the string b
def sum_list_9355(h): total = 0 for x in h: total += x return total
Returns the sum of elements in the list h
def is_palindrome_9356(p): t = p.lower().replace(' ', '') return t == t[::-1]
Checks whether the string p is a palindrome
def reverse_9357(p): return p[::-1]
Reverses the string p
def is_palindrome_9358(g): t = g.lower().replace(' ', '') return t == t[::-1]
Checks whether the string g is a palindrome
def contains_digit_9359(c): for ch in c: if ch.isdigit(): return True return False
Checks if the string c contains any digit
def add_9360(u, s): return u + s
Returns the sum of u and s
def reverse_9361(m): return m[::-1]
Reverses the string m
def add_9362(b, z): return b + z
Returns the sum of b and z
def add_9363(v, b): return v + b
Returns the sum of v and b
def contains_digit_9364(x): for ch in x: if ch.isdigit(): return True return False
Checks if the string x contains any digit
def add_9365(g, k): return g + k
Returns the sum of g and k
def is_palindrome_9366(k): t = k.lower().replace(' ', '') return t == t[::-1]
Checks whether the string k is a palindrome
def is_palindrome_9367(q): t = q.lower().replace(' ', '') return t == t[::-1]
Checks whether the string q is a palindrome
def is_palindrome_9368(v): t = v.lower().replace(' ', '') return t == t[::-1]
Checks whether the string v is a palindrome
def is_palindrome_9369(d): t = d.lower().replace(' ', '') return t == t[::-1]
Checks whether the string d is a palindrome
def contains_digit_9370(d): for ch in d: if ch.isdigit(): return True return False
Checks if the string d contains any digit
def reverse_9371(z): return z[::-1]
Reverses the string z
def is_palindrome_9372(p): t = p.lower().replace(' ', '') return t == t[::-1]
Checks whether the string p is a palindrome
def is_palindrome_9373(b): t = b.lower().replace(' ', '') return t == t[::-1]
Checks whether the string b is a palindrome
def contains_digit_9374(v): for ch in v: if ch.isdigit(): return True return False
Checks if the string v contains any digit
def contains_digit_9375(k): for ch in k: if ch.isdigit(): return True return False
Checks if the string k contains any digit
def reverse_9376(s): return s[::-1]
Reverses the string s
def contains_digit_9377(p): for ch in p: if ch.isdigit(): return True return False
Checks if the string p contains any digit
def contains_digit_9378(v): for ch in v: if ch.isdigit(): return True return False
Checks if the string v contains any digit
def add_9379(d, h): return d + h
Returns the sum of d and h
def sum_list_9380(b): total = 0 for x in b: total += x return total
Returns the sum of elements in the list b
def add_9381(l, k): return l + k
Returns the sum of l and k
def is_palindrome_9382(l): t = l.lower().replace(' ', '') return t == t[::-1]
Checks whether the string l is a palindrome
def add_9383(p, w): return p + w
Returns the sum of p and w
def is_palindrome_9384(u): t = u.lower().replace(' ', '') return t == t[::-1]
Checks whether the string u is a palindrome
def contains_digit_9385(m): for ch in m: if ch.isdigit(): return True return False
Checks if the string m contains any digit
def is_palindrome_9386(d): t = d.lower().replace(' ', '') return t == t[::-1]
Checks whether the string d is a palindrome
def reverse_9387(r): return r[::-1]
Reverses the string r
def is_palindrome_9388(y): t = y.lower().replace(' ', '') return t == t[::-1]
Checks whether the string y is a palindrome
def contains_digit_9389(t): for ch in t: if ch.isdigit(): return True return False
Checks if the string t contains any digit
def sum_list_9390(a): total = 0 for x in a: total += x return total
Returns the sum of elements in the list a
def is_palindrome_9391(s): t = s.lower().replace(' ', '') return t == t[::-1]
Checks whether the string s is a palindrome
def sum_list_9392(s): total = 0 for x in s: total += x return total
Returns the sum of elements in the list s
def contains_digit_9393(p): for ch in p: if ch.isdigit(): return True return False
Checks if the string p contains any digit
def contains_digit_9394(j): for ch in j: if ch.isdigit(): return True return False
Checks if the string j contains any digit
def is_palindrome_9395(k): t = k.lower().replace(' ', '') return t == t[::-1]
Checks whether the string k is a palindrome
def sum_list_9396(h): total = 0 for x in h: total += x return total
Returns the sum of elements in the list h
def reverse_9397(n): return n[::-1]
Reverses the string n
def is_palindrome_9398(z): t = z.lower().replace(' ', '') return t == t[::-1]
Checks whether the string z is a palindrome
def reverse_9399(a): return a[::-1]
Reverses the string a