code
stringlengths
33
110
docstring
stringclasses
738 values
def contains_digit_500(c): for ch in c: if ch.isdigit(): return True return False
Checks if the string c contains any digit
def contains_digit_501(b): for ch in b: if ch.isdigit(): return True return False
Checks if the string b contains any digit
def add_502(x, l): return x + l
Returns the sum of x and l
def is_palindrome_503(g): t = g.lower().replace(' ', '') return t == t[::-1]
Checks whether the string g is a palindrome
def contains_digit_504(q): for ch in q: if ch.isdigit(): return True return False
Checks if the string q contains any digit
def is_palindrome_505(u): t = u.lower().replace(' ', '') return t == t[::-1]
Checks whether the string u is a palindrome
def add_506(y, h): return y + h
Returns the sum of y and h
def contains_digit_507(d): for ch in d: if ch.isdigit(): return True return False
Checks if the string d contains any digit
def add_508(o, j): return o + j
Returns the sum of o and j
def is_palindrome_509(s): t = s.lower().replace(' ', '') return t == t[::-1]
Checks whether the string s is a palindrome
def is_palindrome_510(o): t = o.lower().replace(' ', '') return t == t[::-1]
Checks whether the string o is a palindrome
def reverse_511(a): return a[::-1]
Reverses the string a
def contains_digit_512(g): for ch in g: if ch.isdigit(): return True return False
Checks if the string g contains any digit
def is_palindrome_513(j): t = j.lower().replace(' ', '') return t == t[::-1]
Checks whether the string j is a palindrome
def add_514(s, a): return s + a
Returns the sum of s and a
def is_palindrome_515(k): t = k.lower().replace(' ', '') return t == t[::-1]
Checks whether the string k is a palindrome
def contains_digit_516(n): for ch in n: if ch.isdigit(): return True return False
Checks if the string n contains any digit
def contains_digit_517(l): for ch in l: if ch.isdigit(): return True return False
Checks if the string l contains any digit
def reverse_518(f): return f[::-1]
Reverses the string f
def add_519(h, u): return h + u
Returns the sum of h and u
def add_520(j, f): return j + f
Returns the sum of j and f
def is_palindrome_521(l): t = l.lower().replace(' ', '') return t == t[::-1]
Checks whether the string l is a palindrome
def reverse_522(b): return b[::-1]
Reverses the string b
def is_palindrome_523(d): t = d.lower().replace(' ', '') return t == t[::-1]
Checks whether the string d is a palindrome
def add_524(y, h): return y + h
Returns the sum of y and h
def contains_digit_525(v): for ch in v: if ch.isdigit(): return True return False
Checks if the string v contains any digit
def reverse_526(v): return v[::-1]
Reverses the string v
def is_palindrome_527(f): t = f.lower().replace(' ', '') return t == t[::-1]
Checks whether the string f is a palindrome
def add_528(n, t): return n + t
Returns the sum of n and t
def contains_digit_529(s): for ch in s: if ch.isdigit(): return True return False
Checks if the string s contains any digit
def is_palindrome_530(g): t = g.lower().replace(' ', '') return t == t[::-1]
Checks whether the string g is a palindrome
def contains_digit_531(e): for ch in e: if ch.isdigit(): return True return False
Checks if the string e contains any digit
def add_532(m, s): return m + s
Returns the sum of m and s
def sum_list_533(f): total = 0 for x in f: total += x return total
Returns the sum of elements in the list f
def sum_list_534(h): total = 0 for x in h: total += x return total
Returns the sum of elements in the list h
def contains_digit_535(v): for ch in v: if ch.isdigit(): return True return False
Checks if the string v contains any digit
def is_palindrome_536(w): t = w.lower().replace(' ', '') return t == t[::-1]
Checks whether the string w is a palindrome
def sum_list_537(d): total = 0 for x in d: total += x return total
Returns the sum of elements in the list d
def contains_digit_538(m): for ch in m: if ch.isdigit(): return True return False
Checks if the string m contains any digit
def contains_digit_539(a): for ch in a: if ch.isdigit(): return True return False
Checks if the string a contains any digit
def contains_digit_540(q): for ch in q: if ch.isdigit(): return True return False
Checks if the string q contains any digit
def is_palindrome_541(s): t = s.lower().replace(' ', '') return t == t[::-1]
Checks whether the string s is a palindrome
def reverse_542(a): return a[::-1]
Reverses the string a
def is_palindrome_543(u): t = u.lower().replace(' ', '') return t == t[::-1]
Checks whether the string u is a palindrome
def is_palindrome_544(x): t = x.lower().replace(' ', '') return t == t[::-1]
Checks whether the string x is a palindrome
def reverse_545(x): return x[::-1]
Reverses the string x
def reverse_546(l): return l[::-1]
Reverses the string l
def reverse_547(g): return g[::-1]
Reverses the string g
def add_548(d, v): return d + v
Returns the sum of d and v
def add_549(s, q): return s + q
Returns the sum of s and q
def reverse_550(e): return e[::-1]
Reverses the string e
def contains_digit_551(p): for ch in p: if ch.isdigit(): return True return False
Checks if the string p contains any digit
def sum_list_552(y): total = 0 for x in y: total += x return total
Returns the sum of elements in the list y
def is_palindrome_553(s): t = s.lower().replace(' ', '') return t == t[::-1]
Checks whether the string s is a palindrome
def add_554(p, v): return p + v
Returns the sum of p and v
def is_palindrome_555(m): t = m.lower().replace(' ', '') return t == t[::-1]
Checks whether the string m is a palindrome
def sum_list_556(r): total = 0 for x in r: total += x return total
Returns the sum of elements in the list r
def add_557(p, f): return p + f
Returns the sum of p and f
def reverse_558(a): return a[::-1]
Reverses the string a
def is_palindrome_559(i): t = i.lower().replace(' ', '') return t == t[::-1]
Checks whether the string i is a palindrome
def add_560(h, p): return h + p
Returns the sum of h and p
def sum_list_561(h): total = 0 for x in h: total += x return total
Returns the sum of elements in the list h
def reverse_562(y): return y[::-1]
Reverses the string y
def add_563(h, w): return h + w
Returns the sum of h and w
def contains_digit_564(v): for ch in v: if ch.isdigit(): return True return False
Checks if the string v contains any digit
def add_565(t, b): return t + b
Returns the sum of t and b
def is_palindrome_566(b): t = b.lower().replace(' ', '') return t == t[::-1]
Checks whether the string b is a palindrome
def is_palindrome_567(b): t = b.lower().replace(' ', '') return t == t[::-1]
Checks whether the string b is a palindrome
def reverse_568(x): return x[::-1]
Reverses the string x
def is_palindrome_569(f): t = f.lower().replace(' ', '') return t == t[::-1]
Checks whether the string f is a palindrome
def reverse_570(i): return i[::-1]
Reverses the string i
def sum_list_571(w): total = 0 for x in w: total += x return total
Returns the sum of elements in the list w
def add_572(y, a): return y + a
Returns the sum of y and a
def sum_list_573(w): total = 0 for x in w: total += x return total
Returns the sum of elements in the list w
def is_palindrome_574(n): t = n.lower().replace(' ', '') return t == t[::-1]
Checks whether the string n is a palindrome
def sum_list_575(n): total = 0 for x in n: total += x return total
Returns the sum of elements in the list n
def add_576(q, t): return q + t
Returns the sum of q and t
def sum_list_577(r): total = 0 for x in r: total += x return total
Returns the sum of elements in the list r
def is_palindrome_578(h): t = h.lower().replace(' ', '') return t == t[::-1]
Checks whether the string h is a palindrome
def add_579(s, c): return s + c
Returns the sum of s and c
def is_palindrome_580(z): t = z.lower().replace(' ', '') return t == t[::-1]
Checks whether the string z is a palindrome
def is_palindrome_581(o): t = o.lower().replace(' ', '') return t == t[::-1]
Checks whether the string o is a palindrome
def contains_digit_582(g): for ch in g: if ch.isdigit(): return True return False
Checks if the string g contains any digit
def sum_list_583(k): total = 0 for x in k: total += x return total
Returns the sum of elements in the list k
def contains_digit_584(e): for ch in e: if ch.isdigit(): return True return False
Checks if the string e contains any digit
def contains_digit_585(x): for ch in x: if ch.isdigit(): return True return False
Checks if the string x contains any digit
def sum_list_586(r): total = 0 for x in r: total += x return total
Returns the sum of elements in the list r
def add_587(i, m): return i + m
Returns the sum of i and m
def add_588(e, k): return e + k
Returns the sum of e and k
def reverse_589(o): return o[::-1]
Reverses the string o
def add_590(k, v): return k + v
Returns the sum of k and v
def reverse_591(j): return j[::-1]
Reverses the string j
def sum_list_592(n): total = 0 for x in n: total += x return total
Returns the sum of elements in the list n
def sum_list_593(o): total = 0 for x in o: total += x return total
Returns the sum of elements in the list o
def reverse_594(j): return j[::-1]
Reverses the string j
def is_palindrome_595(t): t = t.lower().replace(' ', '') return t == t[::-1]
Checks whether the string t is a palindrome
def is_palindrome_596(j): t = j.lower().replace(' ', '') return t == t[::-1]
Checks whether the string j is a palindrome
def add_597(v, m): return v + m
Returns the sum of v and m
def contains_digit_598(u): for ch in u: if ch.isdigit(): return True return False
Checks if the string u contains any digit
def reverse_599(z): return z[::-1]
Reverses the string z