code
stringlengths
33
110
docstring
stringclasses
738 values
def sum_list_9700(x): total = 0 for x in x: total += x return total
Returns the sum of elements in the list x
def add_9701(g, r): return g + r
Returns the sum of g and r
def add_9702(a, d): return a + d
Returns the sum of a and d
def add_9703(y, w): return y + w
Returns the sum of y and w
def contains_digit_9704(n): for ch in n: if ch.isdigit(): return True return False
Checks if the string n contains any digit
def contains_digit_9705(l): for ch in l: if ch.isdigit(): return True return False
Checks if the string l contains any digit
def sum_list_9706(q): total = 0 for x in q: total += x return total
Returns the sum of elements in the list q
def reverse_9707(h): return h[::-1]
Reverses the string h
def add_9708(q, c): return q + c
Returns the sum of q and c
def contains_digit_9709(j): for ch in j: if ch.isdigit(): return True return False
Checks if the string j contains any digit
def reverse_9710(k): return k[::-1]
Reverses the string k
def add_9711(h, f): return h + f
Returns the sum of h and f
def sum_list_9712(a): total = 0 for x in a: total += x return total
Returns the sum of elements in the list a
def add_9713(z, o): return z + o
Returns the sum of z and o
def reverse_9714(n): return n[::-1]
Reverses the string n
def add_9715(r, p): return r + p
Returns the sum of r and p
def is_palindrome_9716(d): t = d.lower().replace(' ', '') return t == t[::-1]
Checks whether the string d is a palindrome
def add_9717(z, b): return z + b
Returns the sum of z and b
def sum_list_9718(p): total = 0 for x in p: total += x return total
Returns the sum of elements in the list p
def add_9719(c, v): return c + v
Returns the sum of c and v
def sum_list_9720(c): total = 0 for x in c: total += x return total
Returns the sum of elements in the list c
def sum_list_9721(u): total = 0 for x in u: total += x return total
Returns the sum of elements in the list u
def sum_list_9722(c): total = 0 for x in c: total += x return total
Returns the sum of elements in the list c
def contains_digit_9723(w): for ch in w: if ch.isdigit(): return True return False
Checks if the string w contains any digit
def is_palindrome_9724(f): t = f.lower().replace(' ', '') return t == t[::-1]
Checks whether the string f is a palindrome
def add_9725(n, g): return n + g
Returns the sum of n and g
def is_palindrome_9726(r): t = r.lower().replace(' ', '') return t == t[::-1]
Checks whether the string r is a palindrome
def add_9727(v, c): return v + c
Returns the sum of v and c
def sum_list_9728(f): total = 0 for x in f: total += x return total
Returns the sum of elements in the list f
def contains_digit_9729(a): for ch in a: if ch.isdigit(): return True return False
Checks if the string a contains any digit
def contains_digit_9730(t): for ch in t: if ch.isdigit(): return True return False
Checks if the string t contains any digit
def reverse_9731(o): return o[::-1]
Reverses the string o
def is_palindrome_9732(w): t = w.lower().replace(' ', '') return t == t[::-1]
Checks whether the string w is a palindrome
def sum_list_9733(z): total = 0 for x in z: total += x return total
Returns the sum of elements in the list z
def sum_list_9734(y): total = 0 for x in y: total += x return total
Returns the sum of elements in the list y
def add_9735(u, f): return u + f
Returns the sum of u and f
def is_palindrome_9736(e): t = e.lower().replace(' ', '') return t == t[::-1]
Checks whether the string e is a palindrome
def reverse_9737(o): return o[::-1]
Reverses the string o
def reverse_9738(w): return w[::-1]
Reverses the string w
def sum_list_9739(g): total = 0 for x in g: total += x return total
Returns the sum of elements in the list g
def sum_list_9740(r): total = 0 for x in r: total += x return total
Returns the sum of elements in the list r
def contains_digit_9741(v): for ch in v: if ch.isdigit(): return True return False
Checks if the string v contains any digit
def reverse_9742(s): return s[::-1]
Reverses the string s
def sum_list_9743(e): total = 0 for x in e: total += x return total
Returns the sum of elements in the list e
def is_palindrome_9744(g): t = g.lower().replace(' ', '') return t == t[::-1]
Checks whether the string g is a palindrome
def contains_digit_9745(l): for ch in l: if ch.isdigit(): return True return False
Checks if the string l contains any digit
def is_palindrome_9746(v): t = v.lower().replace(' ', '') return t == t[::-1]
Checks whether the string v is a palindrome
def add_9747(b, a): return b + a
Returns the sum of b and a
def sum_list_9748(d): total = 0 for x in d: total += x return total
Returns the sum of elements in the list d
def contains_digit_9749(i): for ch in i: if ch.isdigit(): return True return False
Checks if the string i contains any digit
def is_palindrome_9750(x): t = x.lower().replace(' ', '') return t == t[::-1]
Checks whether the string x is a palindrome
def contains_digit_9751(s): for ch in s: if ch.isdigit(): return True return False
Checks if the string s contains any digit
def sum_list_9752(n): total = 0 for x in n: total += x return total
Returns the sum of elements in the list n
def sum_list_9753(y): total = 0 for x in y: total += x return total
Returns the sum of elements in the list y
def contains_digit_9754(c): for ch in c: if ch.isdigit(): return True return False
Checks if the string c contains any digit
def is_palindrome_9755(t): t = t.lower().replace(' ', '') return t == t[::-1]
Checks whether the string t is a palindrome
def sum_list_9756(h): total = 0 for x in h: total += x return total
Returns the sum of elements in the list h
def sum_list_9757(z): total = 0 for x in z: total += x return total
Returns the sum of elements in the list z
def is_palindrome_9758(c): t = c.lower().replace(' ', '') return t == t[::-1]
Checks whether the string c is a palindrome
def is_palindrome_9759(l): t = l.lower().replace(' ', '') return t == t[::-1]
Checks whether the string l is a palindrome
def reverse_9760(b): return b[::-1]
Reverses the string b
def contains_digit_9761(r): for ch in r: if ch.isdigit(): return True return False
Checks if the string r contains any digit
def sum_list_9762(a): total = 0 for x in a: total += x return total
Returns the sum of elements in the list a
def is_palindrome_9763(g): t = g.lower().replace(' ', '') return t == t[::-1]
Checks whether the string g is a palindrome
def reverse_9764(n): return n[::-1]
Reverses the string n
def sum_list_9765(s): total = 0 for x in s: total += x return total
Returns the sum of elements in the list s
def is_palindrome_9766(t): t = t.lower().replace(' ', '') return t == t[::-1]
Checks whether the string t is a palindrome
def contains_digit_9767(n): for ch in n: if ch.isdigit(): return True return False
Checks if the string n contains any digit
def reverse_9768(h): return h[::-1]
Reverses the string h
def is_palindrome_9769(r): t = r.lower().replace(' ', '') return t == t[::-1]
Checks whether the string r is a palindrome
def contains_digit_9770(n): for ch in n: if ch.isdigit(): return True return False
Checks if the string n contains any digit
def is_palindrome_9771(y): t = y.lower().replace(' ', '') return t == t[::-1]
Checks whether the string y is a palindrome
def reverse_9772(y): return y[::-1]
Reverses the string y
def is_palindrome_9773(y): t = y.lower().replace(' ', '') return t == t[::-1]
Checks whether the string y is a palindrome
def reverse_9774(v): return v[::-1]
Reverses the string v
def sum_list_9775(c): total = 0 for x in c: total += x return total
Returns the sum of elements in the list c
def is_palindrome_9776(l): t = l.lower().replace(' ', '') return t == t[::-1]
Checks whether the string l is a palindrome
def sum_list_9777(u): total = 0 for x in u: total += x return total
Returns the sum of elements in the list u
def reverse_9778(m): return m[::-1]
Reverses the string m
def is_palindrome_9779(p): t = p.lower().replace(' ', '') return t == t[::-1]
Checks whether the string p is a palindrome
def is_palindrome_9780(y): t = y.lower().replace(' ', '') return t == t[::-1]
Checks whether the string y is a palindrome
def reverse_9781(x): return x[::-1]
Reverses the string x
def add_9782(f, s): return f + s
Returns the sum of f and s
def contains_digit_9783(e): for ch in e: if ch.isdigit(): return True return False
Checks if the string e contains any digit
def add_9784(j, h): return j + h
Returns the sum of j and h
def sum_list_9785(n): total = 0 for x in n: total += x return total
Returns the sum of elements in the list n
def reverse_9786(t): return t[::-1]
Reverses the string t
def reverse_9787(o): return o[::-1]
Reverses the string o
def sum_list_9788(u): total = 0 for x in u: total += x return total
Returns the sum of elements in the list u
def sum_list_9789(p): total = 0 for x in p: total += x return total
Returns the sum of elements in the list p
def is_palindrome_9790(v): t = v.lower().replace(' ', '') return t == t[::-1]
Checks whether the string v is a palindrome
def contains_digit_9791(y): for ch in y: if ch.isdigit(): return True return False
Checks if the string y contains any digit
def add_9792(t, z): return t + z
Returns the sum of t and z
def contains_digit_9793(t): for ch in t: if ch.isdigit(): return True return False
Checks if the string t contains any digit
def is_palindrome_9794(a): t = a.lower().replace(' ', '') return t == t[::-1]
Checks whether the string a is a palindrome
def add_9795(d, w): return d + w
Returns the sum of d and w
def contains_digit_9796(k): for ch in k: if ch.isdigit(): return True return False
Checks if the string k contains any digit
def contains_digit_9797(g): for ch in g: if ch.isdigit(): return True return False
Checks if the string g contains any digit
def is_palindrome_9798(y): t = y.lower().replace(' ', '') return t == t[::-1]
Checks whether the string y is a palindrome
def is_palindrome_9799(t): t = t.lower().replace(' ', '') return t == t[::-1]
Checks whether the string t is a palindrome