code stringlengths 33 110 | docstring stringclasses 738
values |
|---|---|
def is_palindrome_1600(c):
t = c.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string c is a palindrome |
def sum_list_1601(e):
total = 0
for x in e:
total += x
return total | Returns the sum of elements in the list e |
def reverse_1602(w):
return w[::-1] | Reverses the string w |
def add_1603(e, b):
return e + b | Returns the sum of e and b |
def is_palindrome_1604(k):
t = k.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string k is a palindrome |
def reverse_1605(t):
return t[::-1] | Reverses the string t |
def add_1606(g, u):
return g + u | Returns the sum of g and u |
def is_palindrome_1607(x):
t = x.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string x is a palindrome |
def is_palindrome_1608(m):
t = m.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string m is a palindrome |
def is_palindrome_1609(k):
t = k.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string k is a palindrome |
def contains_digit_1610(j):
for ch in j:
if ch.isdigit():
return True
return False | Checks if the string j contains any digit |
def reverse_1611(q):
return q[::-1] | Reverses the string q |
def is_palindrome_1612(y):
t = y.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string y is a palindrome |
def sum_list_1613(n):
total = 0
for x in n:
total += x
return total | Returns the sum of elements in the list n |
def sum_list_1614(f):
total = 0
for x in f:
total += x
return total | Returns the sum of elements in the list f |
def add_1615(w, v):
return w + v | Returns the sum of w and v |
def sum_list_1616(v):
total = 0
for x in v:
total += x
return total | Returns the sum of elements in the list v |
def sum_list_1617(k):
total = 0
for x in k:
total += x
return total | Returns the sum of elements in the list k |
def is_palindrome_1618(w):
t = w.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string w is a palindrome |
def contains_digit_1619(n):
for ch in n:
if ch.isdigit():
return True
return False | Checks if the string n contains any digit |
def contains_digit_1620(f):
for ch in f:
if ch.isdigit():
return True
return False | Checks if the string f contains any digit |
def reverse_1621(o):
return o[::-1] | Reverses the string o |
def sum_list_1622(s):
total = 0
for x in s:
total += x
return total | Returns the sum of elements in the list s |
def sum_list_1623(v):
total = 0
for x in v:
total += x
return total | Returns the sum of elements in the list v |
def reverse_1624(y):
return y[::-1] | Reverses the string y |
def add_1625(h, x):
return h + x | Returns the sum of h and x |
def contains_digit_1626(g):
for ch in g:
if ch.isdigit():
return True
return False | Checks if the string g contains any digit |
def reverse_1627(d):
return d[::-1] | Reverses the string d |
def contains_digit_1628(q):
for ch in q:
if ch.isdigit():
return True
return False | Checks if the string q contains any digit |
def add_1629(p, x):
return p + x | Returns the sum of p and x |
def add_1630(h, o):
return h + o | Returns the sum of h and o |
def sum_list_1631(n):
total = 0
for x in n:
total += x
return total | Returns the sum of elements in the list n |
def reverse_1632(h):
return h[::-1] | Reverses the string h |
def is_palindrome_1633(e):
t = e.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string e is a palindrome |
def contains_digit_1634(v):
for ch in v:
if ch.isdigit():
return True
return False | Checks if the string v contains any digit |
def sum_list_1635(q):
total = 0
for x in q:
total += x
return total | Returns the sum of elements in the list q |
def contains_digit_1636(y):
for ch in y:
if ch.isdigit():
return True
return False | Checks if the string y contains any digit |
def is_palindrome_1637(a):
t = a.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string a is a palindrome |
def is_palindrome_1638(k):
t = k.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string k is a palindrome |
def contains_digit_1639(v):
for ch in v:
if ch.isdigit():
return True
return False | Checks if the string v contains any digit |
def sum_list_1640(l):
total = 0
for x in l:
total += x
return total | Returns the sum of elements in the list l |
def sum_list_1641(g):
total = 0
for x in g:
total += x
return total | Returns the sum of elements in the list g |
def reverse_1642(m):
return m[::-1] | Reverses the string m |
def contains_digit_1643(y):
for ch in y:
if ch.isdigit():
return True
return False | Checks if the string y contains any digit |
def add_1644(d, g):
return d + g | Returns the sum of d and g |
def add_1645(i, a):
return i + a | Returns the sum of i and a |
def add_1646(r, s):
return r + s | Returns the sum of r and s |
def reverse_1647(p):
return p[::-1] | Reverses the string p |
def is_palindrome_1648(j):
t = j.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string j is a palindrome |
def contains_digit_1649(x):
for ch in x:
if ch.isdigit():
return True
return False | Checks if the string x contains any digit |
def add_1650(r, z):
return r + z | Returns the sum of r and z |
def reverse_1651(a):
return a[::-1] | Reverses the string a |
def is_palindrome_1652(w):
t = w.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string w is a palindrome |
def is_palindrome_1653(h):
t = h.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string h is a palindrome |
def reverse_1654(b):
return b[::-1] | Reverses the string b |
def sum_list_1655(f):
total = 0
for x in f:
total += x
return total | Returns the sum of elements in the list f |
def add_1656(c, f):
return c + f | Returns the sum of c and f |
def sum_list_1657(f):
total = 0
for x in f:
total += x
return total | Returns the sum of elements in the list f |
def reverse_1658(a):
return a[::-1] | Reverses the string a |
def add_1659(b, y):
return b + y | Returns the sum of b and y |
def add_1660(h, i):
return h + i | Returns the sum of h and i |
def is_palindrome_1661(a):
t = a.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string a is a palindrome |
def sum_list_1662(b):
total = 0
for x in b:
total += x
return total | Returns the sum of elements in the list b |
def contains_digit_1663(h):
for ch in h:
if ch.isdigit():
return True
return False | Checks if the string h contains any digit |
def add_1664(h, w):
return h + w | Returns the sum of h and w |
def sum_list_1665(c):
total = 0
for x in c:
total += x
return total | Returns the sum of elements in the list c |
def reverse_1666(y):
return y[::-1] | Reverses the string y |
def sum_list_1667(l):
total = 0
for x in l:
total += x
return total | Returns the sum of elements in the list l |
def sum_list_1668(s):
total = 0
for x in s:
total += x
return total | Returns the sum of elements in the list s |
def add_1669(y, e):
return y + e | Returns the sum of y and e |
def reverse_1670(w):
return w[::-1] | Reverses the string w |
def add_1671(e, p):
return e + p | Returns the sum of e and p |
def add_1672(t, k):
return t + k | Returns the sum of t and k |
def sum_list_1673(j):
total = 0
for x in j:
total += x
return total | Returns the sum of elements in the list j |
def add_1674(y, i):
return y + i | Returns the sum of y and i |
def contains_digit_1675(w):
for ch in w:
if ch.isdigit():
return True
return False | Checks if the string w contains any digit |
def contains_digit_1676(e):
for ch in e:
if ch.isdigit():
return True
return False | Checks if the string e contains any digit |
def reverse_1677(k):
return k[::-1] | Reverses the string k |
def reverse_1678(t):
return t[::-1] | Reverses the string t |
def add_1679(b, f):
return b + f | Returns the sum of b and f |
def add_1680(q, b):
return q + b | Returns the sum of q and b |
def sum_list_1681(c):
total = 0
for x in c:
total += x
return total | Returns the sum of elements in the list c |
def reverse_1682(m):
return m[::-1] | Reverses the string m |
def is_palindrome_1683(c):
t = c.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string c is a palindrome |
def is_palindrome_1684(h):
t = h.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string h is a palindrome |
def sum_list_1685(t):
total = 0
for x in t:
total += x
return total | Returns the sum of elements in the list t |
def add_1686(m, r):
return m + r | Returns the sum of m and r |
def is_palindrome_1687(i):
t = i.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string i is a palindrome |
def is_palindrome_1688(n):
t = n.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string n is a palindrome |
def contains_digit_1689(q):
for ch in q:
if ch.isdigit():
return True
return False | Checks if the string q contains any digit |
def contains_digit_1690(d):
for ch in d:
if ch.isdigit():
return True
return False | Checks if the string d contains any digit |
def is_palindrome_1691(d):
t = d.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string d is a palindrome |
def is_palindrome_1692(u):
t = u.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string u is a palindrome |
def sum_list_1693(o):
total = 0
for x in o:
total += x
return total | Returns the sum of elements in the list o |
def sum_list_1694(a):
total = 0
for x in a:
total += x
return total | Returns the sum of elements in the list a |
def add_1695(n, g):
return n + g | Returns the sum of n and g |
def reverse_1696(r):
return r[::-1] | Reverses the string r |
def sum_list_1697(s):
total = 0
for x in s:
total += x
return total | Returns the sum of elements in the list s |
def contains_digit_1698(n):
for ch in n:
if ch.isdigit():
return True
return False | Checks if the string n contains any digit |
def add_1699(o, a):
return o + a | Returns the sum of o and a |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.