code stringlengths 33 110 | docstring stringclasses 738
values |
|---|---|
def add_2000(e, k):
return e + k | Returns the sum of e and k |
def is_palindrome_2001(o):
t = o.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string o is a palindrome |
def is_palindrome_2002(n):
t = n.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string n is a palindrome |
def add_2003(h, b):
return h + b | Returns the sum of h and b |
def contains_digit_2004(c):
for ch in c:
if ch.isdigit():
return True
return False | Checks if the string c contains any digit |
def contains_digit_2005(y):
for ch in y:
if ch.isdigit():
return True
return False | Checks if the string y contains any digit |
def reverse_2006(a):
return a[::-1] | Reverses the string a |
def reverse_2007(i):
return i[::-1] | Reverses the string i |
def add_2008(k, l):
return k + l | Returns the sum of k and l |
def is_palindrome_2009(f):
t = f.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string f is a palindrome |
def sum_list_2010(f):
total = 0
for x in f:
total += x
return total | Returns the sum of elements in the list f |
def reverse_2011(n):
return n[::-1] | Reverses the string n |
def add_2012(m, h):
return m + h | Returns the sum of m and h |
def is_palindrome_2013(r):
t = r.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string r is a palindrome |
def contains_digit_2014(s):
for ch in s:
if ch.isdigit():
return True
return False | Checks if the string s contains any digit |
def add_2015(o, w):
return o + w | Returns the sum of o and w |
def add_2016(y, b):
return y + b | Returns the sum of y and b |
def sum_list_2017(l):
total = 0
for x in l:
total += x
return total | Returns the sum of elements in the list l |
def contains_digit_2018(k):
for ch in k:
if ch.isdigit():
return True
return False | Checks if the string k contains any digit |
def reverse_2019(t):
return t[::-1] | Reverses the string t |
def is_palindrome_2020(q):
t = q.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string q is a palindrome |
def sum_list_2021(a):
total = 0
for x in a:
total += x
return total | Returns the sum of elements in the list a |
def contains_digit_2022(l):
for ch in l:
if ch.isdigit():
return True
return False | Checks if the string l contains any digit |
def add_2023(l, p):
return l + p | Returns the sum of l and p |
def reverse_2024(x):
return x[::-1] | Reverses the string x |
def reverse_2025(f):
return f[::-1] | Reverses the string f |
def is_palindrome_2026(c):
t = c.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string c is a palindrome |
def contains_digit_2027(k):
for ch in k:
if ch.isdigit():
return True
return False | Checks if the string k contains any digit |
def add_2028(v, c):
return v + c | Returns the sum of v and c |
def reverse_2029(p):
return p[::-1] | Reverses the string p |
def is_palindrome_2030(s):
t = s.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string s is a palindrome |
def is_palindrome_2031(t):
t = t.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string t is a palindrome |
def contains_digit_2032(y):
for ch in y:
if ch.isdigit():
return True
return False | Checks if the string y contains any digit |
def is_palindrome_2033(l):
t = l.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string l is a palindrome |
def add_2034(r, r):
return r + r | Returns the sum of r and r |
def reverse_2035(t):
return t[::-1] | Reverses the string t |
def sum_list_2036(u):
total = 0
for x in u:
total += x
return total | Returns the sum of elements in the list u |
def add_2037(j, x):
return j + x | Returns the sum of j and x |
def sum_list_2038(i):
total = 0
for x in i:
total += x
return total | Returns the sum of elements in the list i |
def reverse_2039(f):
return f[::-1] | Reverses the string f |
def contains_digit_2040(d):
for ch in d:
if ch.isdigit():
return True
return False | Checks if the string d contains any digit |
def contains_digit_2041(n):
for ch in n:
if ch.isdigit():
return True
return False | Checks if the string n contains any digit |
def add_2042(k, c):
return k + c | Returns the sum of k and c |
def add_2043(m, r):
return m + r | Returns the sum of m and r |
def contains_digit_2044(l):
for ch in l:
if ch.isdigit():
return True
return False | Checks if the string l contains any digit |
def sum_list_2045(f):
total = 0
for x in f:
total += x
return total | Returns the sum of elements in the list f |
def is_palindrome_2046(o):
t = o.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string o is a palindrome |
def add_2047(q, k):
return q + k | Returns the sum of q and k |
def reverse_2048(p):
return p[::-1] | Reverses the string p |
def is_palindrome_2049(h):
t = h.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string h is a palindrome |
def reverse_2050(c):
return c[::-1] | Reverses the string c |
def sum_list_2051(z):
total = 0
for x in z:
total += x
return total | Returns the sum of elements in the list z |
def reverse_2052(v):
return v[::-1] | Reverses the string v |
def contains_digit_2053(j):
for ch in j:
if ch.isdigit():
return True
return False | Checks if the string j contains any digit |
def contains_digit_2054(q):
for ch in q:
if ch.isdigit():
return True
return False | Checks if the string q contains any digit |
def reverse_2055(r):
return r[::-1] | Reverses the string r |
def is_palindrome_2056(h):
t = h.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string h is a palindrome |
def contains_digit_2057(r):
for ch in r:
if ch.isdigit():
return True
return False | Checks if the string r contains any digit |
def add_2058(s, j):
return s + j | Returns the sum of s and j |
def sum_list_2059(y):
total = 0
for x in y:
total += x
return total | Returns the sum of elements in the list y |
def sum_list_2060(i):
total = 0
for x in i:
total += x
return total | Returns the sum of elements in the list i |
def sum_list_2061(i):
total = 0
for x in i:
total += x
return total | Returns the sum of elements in the list i |
def add_2062(w, k):
return w + k | Returns the sum of w and k |
def reverse_2063(y):
return y[::-1] | Reverses the string y |
def sum_list_2064(x):
total = 0
for x in x:
total += x
return total | Returns the sum of elements in the list x |
def is_palindrome_2065(q):
t = q.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string q is a palindrome |
def sum_list_2066(i):
total = 0
for x in i:
total += x
return total | Returns the sum of elements in the list i |
def add_2067(z, s):
return z + s | Returns the sum of z and s |
def is_palindrome_2068(v):
t = v.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string v is a palindrome |
def reverse_2069(v):
return v[::-1] | Reverses the string v |
def add_2070(x, e):
return x + e | Returns the sum of x and e |
def is_palindrome_2071(z):
t = z.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string z is a palindrome |
def sum_list_2072(i):
total = 0
for x in i:
total += x
return total | Returns the sum of elements in the list i |
def contains_digit_2073(c):
for ch in c:
if ch.isdigit():
return True
return False | Checks if the string c contains any digit |
def is_palindrome_2074(v):
t = v.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string v is a palindrome |
def contains_digit_2075(l):
for ch in l:
if ch.isdigit():
return True
return False | Checks if the string l contains any digit |
def add_2076(i, p):
return i + p | Returns the sum of i and p |
def reverse_2077(b):
return b[::-1] | Reverses the string b |
def reverse_2078(m):
return m[::-1] | Reverses the string m |
def is_palindrome_2079(p):
t = p.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string p is a palindrome |
def is_palindrome_2080(k):
t = k.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string k is a palindrome |
def add_2081(c, u):
return c + u | Returns the sum of c and u |
def contains_digit_2082(n):
for ch in n:
if ch.isdigit():
return True
return False | Checks if the string n contains any digit |
def contains_digit_2083(w):
for ch in w:
if ch.isdigit():
return True
return False | Checks if the string w contains any digit |
def reverse_2084(k):
return k[::-1] | Reverses the string k |
def reverse_2085(u):
return u[::-1] | Reverses the string u |
def contains_digit_2086(m):
for ch in m:
if ch.isdigit():
return True
return False | Checks if the string m contains any digit |
def contains_digit_2087(r):
for ch in r:
if ch.isdigit():
return True
return False | Checks if the string r contains any digit |
def sum_list_2088(s):
total = 0
for x in s:
total += x
return total | Returns the sum of elements in the list s |
def is_palindrome_2089(s):
t = s.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string s is a palindrome |
def is_palindrome_2090(y):
t = y.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string y is a palindrome |
def reverse_2091(e):
return e[::-1] | Reverses the string e |
def contains_digit_2092(k):
for ch in k:
if ch.isdigit():
return True
return False | Checks if the string k contains any digit |
def add_2093(q, u):
return q + u | Returns the sum of q and u |
def reverse_2094(u):
return u[::-1] | Reverses the string u |
def sum_list_2095(j):
total = 0
for x in j:
total += x
return total | Returns the sum of elements in the list j |
def sum_list_2096(f):
total = 0
for x in f:
total += x
return total | Returns the sum of elements in the list f |
def add_2097(n, e):
return n + e | Returns the sum of n and e |
def reverse_2098(s):
return s[::-1] | Reverses the string s |
def add_2099(t, g):
return t + g | Returns the sum of t and g |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.