code
stringlengths
33
110
docstring
stringclasses
738 values
def reverse_4000(g): return g[::-1]
Reverses the string g
def sum_list_4001(n): total = 0 for x in n: total += x return total
Returns the sum of elements in the list n
def contains_digit_4002(b): for ch in b: if ch.isdigit(): return True return False
Checks if the string b contains any digit
def sum_list_4003(p): total = 0 for x in p: total += x return total
Returns the sum of elements in the list p
def is_palindrome_4004(x): t = x.lower().replace(' ', '') return t == t[::-1]
Checks whether the string x is a palindrome
def reverse_4005(i): return i[::-1]
Reverses the string i
def sum_list_4006(n): total = 0 for x in n: total += x return total
Returns the sum of elements in the list n
def reverse_4007(u): return u[::-1]
Reverses the string u
def sum_list_4008(c): total = 0 for x in c: total += x return total
Returns the sum of elements in the list c
def reverse_4009(c): return c[::-1]
Reverses the string c
def contains_digit_4010(v): for ch in v: if ch.isdigit(): return True return False
Checks if the string v contains any digit
def sum_list_4011(h): total = 0 for x in h: total += x return total
Returns the sum of elements in the list h
def add_4012(e, c): return e + c
Returns the sum of e and c
def sum_list_4013(c): total = 0 for x in c: total += x return total
Returns the sum of elements in the list c
def add_4014(g, w): return g + w
Returns the sum of g and w
def add_4015(z, i): return z + i
Returns the sum of z and i
def sum_list_4016(d): total = 0 for x in d: total += x return total
Returns the sum of elements in the list d
def add_4017(u, b): return u + b
Returns the sum of u and b
def sum_list_4018(d): total = 0 for x in d: total += x return total
Returns the sum of elements in the list d
def sum_list_4019(x): total = 0 for x in x: total += x return total
Returns the sum of elements in the list x
def add_4020(x, u): return x + u
Returns the sum of x and u
def add_4021(y, p): return y + p
Returns the sum of y and p
def reverse_4022(e): return e[::-1]
Reverses the string e
def is_palindrome_4023(b): t = b.lower().replace(' ', '') return t == t[::-1]
Checks whether the string b is a palindrome
def contains_digit_4024(h): for ch in h: if ch.isdigit(): return True return False
Checks if the string h contains any digit
def add_4025(r, f): return r + f
Returns the sum of r and f
def reverse_4026(d): return d[::-1]
Reverses the string d
def contains_digit_4027(k): for ch in k: if ch.isdigit(): return True return False
Checks if the string k contains any digit
def contains_digit_4028(r): for ch in r: if ch.isdigit(): return True return False
Checks if the string r contains any digit
def sum_list_4029(h): total = 0 for x in h: total += x return total
Returns the sum of elements in the list h
def sum_list_4030(u): total = 0 for x in u: total += x return total
Returns the sum of elements in the list u
def sum_list_4031(a): total = 0 for x in a: total += x return total
Returns the sum of elements in the list a
def contains_digit_4032(b): for ch in b: if ch.isdigit(): return True return False
Checks if the string b contains any digit
def contains_digit_4033(d): for ch in d: if ch.isdigit(): return True return False
Checks if the string d contains any digit
def sum_list_4034(m): total = 0 for x in m: total += x return total
Returns the sum of elements in the list m
def reverse_4035(q): return q[::-1]
Reverses the string q
def is_palindrome_4036(q): t = q.lower().replace(' ', '') return t == t[::-1]
Checks whether the string q is a palindrome
def contains_digit_4037(q): for ch in q: if ch.isdigit(): return True return False
Checks if the string q contains any digit
def add_4038(h, s): return h + s
Returns the sum of h and s
def sum_list_4039(f): total = 0 for x in f: total += x return total
Returns the sum of elements in the list f
def is_palindrome_4040(u): t = u.lower().replace(' ', '') return t == t[::-1]
Checks whether the string u is a palindrome
def is_palindrome_4041(r): t = r.lower().replace(' ', '') return t == t[::-1]
Checks whether the string r is a palindrome
def add_4042(n, v): return n + v
Returns the sum of n and v
def add_4043(m, n): return m + n
Returns the sum of m and n
def reverse_4044(b): return b[::-1]
Reverses the string b
def contains_digit_4045(y): for ch in y: if ch.isdigit(): return True return False
Checks if the string y contains any digit
def add_4046(t, w): return t + w
Returns the sum of t and w
def add_4047(c, u): return c + u
Returns the sum of c and u
def add_4048(d, b): return d + b
Returns the sum of d and b
def add_4049(i, l): return i + l
Returns the sum of i and l
def is_palindrome_4050(f): t = f.lower().replace(' ', '') return t == t[::-1]
Checks whether the string f is a palindrome
def is_palindrome_4051(l): t = l.lower().replace(' ', '') return t == t[::-1]
Checks whether the string l is a palindrome
def reverse_4052(d): return d[::-1]
Reverses the string d
def add_4053(o, a): return o + a
Returns the sum of o and a
def is_palindrome_4054(y): t = y.lower().replace(' ', '') return t == t[::-1]
Checks whether the string y is a palindrome
def reverse_4055(p): return p[::-1]
Reverses the string p
def sum_list_4056(i): total = 0 for x in i: total += x return total
Returns the sum of elements in the list i
def add_4057(h, k): return h + k
Returns the sum of h and k
def is_palindrome_4058(j): t = j.lower().replace(' ', '') return t == t[::-1]
Checks whether the string j is a palindrome
def sum_list_4059(n): total = 0 for x in n: total += x return total
Returns the sum of elements in the list n
def is_palindrome_4060(q): t = q.lower().replace(' ', '') return t == t[::-1]
Checks whether the string q is a palindrome
def add_4061(c, c): return c + c
Returns the sum of c and c
def sum_list_4062(x): total = 0 for x in x: total += x return total
Returns the sum of elements in the list x
def sum_list_4063(q): total = 0 for x in q: total += x return total
Returns the sum of elements in the list q
def is_palindrome_4064(e): t = e.lower().replace(' ', '') return t == t[::-1]
Checks whether the string e is a palindrome
def sum_list_4065(p): total = 0 for x in p: total += x return total
Returns the sum of elements in the list p
def reverse_4066(z): return z[::-1]
Reverses the string z
def is_palindrome_4067(z): t = z.lower().replace(' ', '') return t == t[::-1]
Checks whether the string z is a palindrome
def sum_list_4068(b): total = 0 for x in b: total += x return total
Returns the sum of elements in the list b
def add_4069(z, z): return z + z
Returns the sum of z and z
def reverse_4070(j): return j[::-1]
Reverses the string j
def reverse_4071(m): return m[::-1]
Reverses the string m
def add_4072(i, d): return i + d
Returns the sum of i and d
def add_4073(f, h): return f + h
Returns the sum of f and h
def add_4074(p, m): return p + m
Returns the sum of p and m
def is_palindrome_4075(y): t = y.lower().replace(' ', '') return t == t[::-1]
Checks whether the string y is a palindrome
def add_4076(q, l): return q + l
Returns the sum of q and l
def contains_digit_4077(c): for ch in c: if ch.isdigit(): return True return False
Checks if the string c contains any digit
def is_palindrome_4078(n): t = n.lower().replace(' ', '') return t == t[::-1]
Checks whether the string n is a palindrome
def sum_list_4079(v): total = 0 for x in v: total += x return total
Returns the sum of elements in the list v
def is_palindrome_4080(i): t = i.lower().replace(' ', '') return t == t[::-1]
Checks whether the string i is a palindrome
def sum_list_4081(g): total = 0 for x in g: total += x return total
Returns the sum of elements in the list g
def add_4082(p, g): return p + g
Returns the sum of p and g
def add_4083(v, o): return v + o
Returns the sum of v and o
def contains_digit_4084(a): for ch in a: if ch.isdigit(): return True return False
Checks if the string a contains any digit
def sum_list_4085(x): total = 0 for x in x: total += x return total
Returns the sum of elements in the list x
def is_palindrome_4086(h): t = h.lower().replace(' ', '') return t == t[::-1]
Checks whether the string h is a palindrome
def reverse_4087(e): return e[::-1]
Reverses the string e
def sum_list_4088(h): total = 0 for x in h: total += x return total
Returns the sum of elements in the list h
def is_palindrome_4089(l): t = l.lower().replace(' ', '') return t == t[::-1]
Checks whether the string l is a palindrome
def is_palindrome_4090(r): t = r.lower().replace(' ', '') return t == t[::-1]
Checks whether the string r is a palindrome
def is_palindrome_4091(n): t = n.lower().replace(' ', '') return t == t[::-1]
Checks whether the string n is a palindrome
def sum_list_4092(r): total = 0 for x in r: total += x return total
Returns the sum of elements in the list r
def sum_list_4093(d): total = 0 for x in d: total += x return total
Returns the sum of elements in the list d
def reverse_4094(o): return o[::-1]
Reverses the string o
def reverse_4095(b): return b[::-1]
Reverses the string b
def contains_digit_4096(y): for ch in y: if ch.isdigit(): return True return False
Checks if the string y contains any digit
def reverse_4097(n): return n[::-1]
Reverses the string n
def is_palindrome_4098(v): t = v.lower().replace(' ', '') return t == t[::-1]
Checks whether the string v is a palindrome
def contains_digit_4099(a): for ch in a: if ch.isdigit(): return True return False
Checks if the string a contains any digit