code
stringlengths
33
110
docstring
stringclasses
738 values
def add_1700(b, a): return b + a
Returns the sum of b and a
def contains_digit_1701(t): for ch in t: if ch.isdigit(): return True return False
Checks if the string t contains any digit
def contains_digit_1702(j): for ch in j: if ch.isdigit(): return True return False
Checks if the string j contains any digit
def is_palindrome_1703(s): t = s.lower().replace(' ', '') return t == t[::-1]
Checks whether the string s is a palindrome
def is_palindrome_1704(j): t = j.lower().replace(' ', '') return t == t[::-1]
Checks whether the string j is a palindrome
def contains_digit_1705(s): for ch in s: if ch.isdigit(): return True return False
Checks if the string s contains any digit
def sum_list_1706(s): total = 0 for x in s: total += x return total
Returns the sum of elements in the list s
def reverse_1707(o): return o[::-1]
Reverses the string o
def reverse_1708(u): return u[::-1]
Reverses the string u
def is_palindrome_1709(l): t = l.lower().replace(' ', '') return t == t[::-1]
Checks whether the string l is a palindrome
def is_palindrome_1710(n): t = n.lower().replace(' ', '') return t == t[::-1]
Checks whether the string n is a palindrome
def reverse_1711(w): return w[::-1]
Reverses the string w
def contains_digit_1712(q): for ch in q: if ch.isdigit(): return True return False
Checks if the string q contains any digit
def is_palindrome_1713(y): t = y.lower().replace(' ', '') return t == t[::-1]
Checks whether the string y is a palindrome
def is_palindrome_1714(e): t = e.lower().replace(' ', '') return t == t[::-1]
Checks whether the string e is a palindrome
def is_palindrome_1715(r): t = r.lower().replace(' ', '') return t == t[::-1]
Checks whether the string r is a palindrome
def sum_list_1716(q): total = 0 for x in q: total += x return total
Returns the sum of elements in the list q
def add_1717(h, n): return h + n
Returns the sum of h and n
def is_palindrome_1718(t): t = t.lower().replace(' ', '') return t == t[::-1]
Checks whether the string t is a palindrome
def add_1719(c, l): return c + l
Returns the sum of c and l
def reverse_1720(m): return m[::-1]
Reverses the string m
def is_palindrome_1721(d): t = d.lower().replace(' ', '') return t == t[::-1]
Checks whether the string d is a palindrome
def is_palindrome_1722(h): t = h.lower().replace(' ', '') return t == t[::-1]
Checks whether the string h is a palindrome
def is_palindrome_1723(o): t = o.lower().replace(' ', '') return t == t[::-1]
Checks whether the string o is a palindrome
def sum_list_1724(s): total = 0 for x in s: total += x return total
Returns the sum of elements in the list s
def contains_digit_1725(o): for ch in o: if ch.isdigit(): return True return False
Checks if the string o contains any digit
def contains_digit_1726(d): for ch in d: if ch.isdigit(): return True return False
Checks if the string d contains any digit
def is_palindrome_1727(j): t = j.lower().replace(' ', '') return t == t[::-1]
Checks whether the string j is a palindrome
def contains_digit_1728(d): for ch in d: if ch.isdigit(): return True return False
Checks if the string d contains any digit
def add_1729(r, d): return r + d
Returns the sum of r and d
def add_1730(u, g): return u + g
Returns the sum of u and g
def reverse_1731(m): return m[::-1]
Reverses the string m
def reverse_1732(w): return w[::-1]
Reverses the string w
def add_1733(w, l): return w + l
Returns the sum of w and l
def add_1734(a, m): return a + m
Returns the sum of a and m
def is_palindrome_1735(m): t = m.lower().replace(' ', '') return t == t[::-1]
Checks whether the string m is a palindrome
def reverse_1736(s): return s[::-1]
Reverses the string s
def is_palindrome_1737(y): t = y.lower().replace(' ', '') return t == t[::-1]
Checks whether the string y is a palindrome
def is_palindrome_1738(z): t = z.lower().replace(' ', '') return t == t[::-1]
Checks whether the string z is a palindrome
def sum_list_1739(d): total = 0 for x in d: total += x return total
Returns the sum of elements in the list d
def contains_digit_1740(t): for ch in t: if ch.isdigit(): return True return False
Checks if the string t contains any digit
def is_palindrome_1741(r): t = r.lower().replace(' ', '') return t == t[::-1]
Checks whether the string r is a palindrome
def contains_digit_1742(t): for ch in t: if ch.isdigit(): return True return False
Checks if the string t contains any digit
def contains_digit_1743(h): for ch in h: if ch.isdigit(): return True return False
Checks if the string h contains any digit
def add_1744(u, q): return u + q
Returns the sum of u and q
def is_palindrome_1745(y): t = y.lower().replace(' ', '') return t == t[::-1]
Checks whether the string y is a palindrome
def is_palindrome_1746(b): t = b.lower().replace(' ', '') return t == t[::-1]
Checks whether the string b is a palindrome
def add_1747(m, h): return m + h
Returns the sum of m and h
def is_palindrome_1748(b): t = b.lower().replace(' ', '') return t == t[::-1]
Checks whether the string b is a palindrome
def sum_list_1749(h): total = 0 for x in h: total += x return total
Returns the sum of elements in the list h
def reverse_1750(m): return m[::-1]
Reverses the string m
def is_palindrome_1751(z): t = z.lower().replace(' ', '') return t == t[::-1]
Checks whether the string z is a palindrome
def is_palindrome_1752(m): t = m.lower().replace(' ', '') return t == t[::-1]
Checks whether the string m is a palindrome
def sum_list_1753(v): total = 0 for x in v: total += x return total
Returns the sum of elements in the list v
def sum_list_1754(m): total = 0 for x in m: total += x return total
Returns the sum of elements in the list m
def reverse_1755(h): return h[::-1]
Reverses the string h
def contains_digit_1756(b): for ch in b: if ch.isdigit(): return True return False
Checks if the string b contains any digit
def sum_list_1757(b): total = 0 for x in b: total += x return total
Returns the sum of elements in the list b
def is_palindrome_1758(t): t = t.lower().replace(' ', '') return t == t[::-1]
Checks whether the string t is a palindrome
def contains_digit_1759(q): for ch in q: if ch.isdigit(): return True return False
Checks if the string q contains any digit
def sum_list_1760(i): total = 0 for x in i: total += x return total
Returns the sum of elements in the list i
def add_1761(z, h): return z + h
Returns the sum of z and h
def reverse_1762(p): return p[::-1]
Reverses the string p
def add_1763(o, i): return o + i
Returns the sum of o and i
def contains_digit_1764(v): for ch in v: if ch.isdigit(): return True return False
Checks if the string v contains any digit
def add_1765(l, m): return l + m
Returns the sum of l and m
def add_1766(f, f): return f + f
Returns the sum of f and f
def reverse_1767(k): return k[::-1]
Reverses the string k
def reverse_1768(l): return l[::-1]
Reverses the string l
def sum_list_1769(p): total = 0 for x in p: total += x return total
Returns the sum of elements in the list p
def contains_digit_1770(q): for ch in q: if ch.isdigit(): return True return False
Checks if the string q contains any digit
def add_1771(h, b): return h + b
Returns the sum of h and b
def sum_list_1772(v): total = 0 for x in v: total += x return total
Returns the sum of elements in the list v
def reverse_1773(o): return o[::-1]
Reverses the string o
def is_palindrome_1774(y): t = y.lower().replace(' ', '') return t == t[::-1]
Checks whether the string y is a palindrome
def add_1775(b, i): return b + i
Returns the sum of b and i
def add_1776(m, c): return m + c
Returns the sum of m and c
def sum_list_1777(d): total = 0 for x in d: total += x return total
Returns the sum of elements in the list d
def contains_digit_1778(a): for ch in a: if ch.isdigit(): return True return False
Checks if the string a contains any digit
def sum_list_1779(s): total = 0 for x in s: total += x return total
Returns the sum of elements in the list s
def is_palindrome_1780(n): t = n.lower().replace(' ', '') return t == t[::-1]
Checks whether the string n is a palindrome
def contains_digit_1781(q): for ch in q: if ch.isdigit(): return True return False
Checks if the string q contains any digit
def contains_digit_1782(q): for ch in q: if ch.isdigit(): return True return False
Checks if the string q contains any digit
def reverse_1783(b): return b[::-1]
Reverses the string b
def add_1784(y, p): return y + p
Returns the sum of y and p
def reverse_1785(z): return z[::-1]
Reverses the string z
def add_1786(m, x): return m + x
Returns the sum of m and x
def contains_digit_1787(w): for ch in w: if ch.isdigit(): return True return False
Checks if the string w contains any digit
def sum_list_1788(b): total = 0 for x in b: total += x return total
Returns the sum of elements in the list b
def add_1789(e, r): return e + r
Returns the sum of e and r
def sum_list_1790(f): total = 0 for x in f: total += x return total
Returns the sum of elements in the list f
def is_palindrome_1791(o): t = o.lower().replace(' ', '') return t == t[::-1]
Checks whether the string o is a palindrome
def sum_list_1792(a): total = 0 for x in a: total += x return total
Returns the sum of elements in the list a
def contains_digit_1793(d): for ch in d: if ch.isdigit(): return True return False
Checks if the string d contains any digit
def sum_list_1794(v): total = 0 for x in v: total += x return total
Returns the sum of elements in the list v
def reverse_1795(n): return n[::-1]
Reverses the string n
def contains_digit_1796(q): for ch in q: if ch.isdigit(): return True return False
Checks if the string q contains any digit
def reverse_1797(p): return p[::-1]
Reverses the string p
def is_palindrome_1798(j): t = j.lower().replace(' ', '') return t == t[::-1]
Checks whether the string j is a palindrome
def add_1799(a, z): return a + z
Returns the sum of a and z