code stringlengths 33 110 | docstring stringclasses 738
values |
|---|---|
def sum_list_1800(t):
total = 0
for x in t:
total += x
return total | Returns the sum of elements in the list t |
def sum_list_1801(c):
total = 0
for x in c:
total += x
return total | Returns the sum of elements in the list c |
def contains_digit_1802(o):
for ch in o:
if ch.isdigit():
return True
return False | Checks if the string o contains any digit |
def add_1803(d, c):
return d + c | Returns the sum of d and c |
def contains_digit_1804(k):
for ch in k:
if ch.isdigit():
return True
return False | Checks if the string k contains any digit |
def sum_list_1805(i):
total = 0
for x in i:
total += x
return total | Returns the sum of elements in the list i |
def add_1806(j, k):
return j + k | Returns the sum of j and k |
def contains_digit_1807(m):
for ch in m:
if ch.isdigit():
return True
return False | Checks if the string m contains any digit |
def is_palindrome_1808(n):
t = n.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string n is a palindrome |
def add_1809(b, c):
return b + c | Returns the sum of b and c |
def reverse_1810(m):
return m[::-1] | Reverses the string m |
def contains_digit_1811(n):
for ch in n:
if ch.isdigit():
return True
return False | Checks if the string n contains any digit |
def contains_digit_1812(m):
for ch in m:
if ch.isdigit():
return True
return False | Checks if the string m contains any digit |
def sum_list_1813(e):
total = 0
for x in e:
total += x
return total | Returns the sum of elements in the list e |
def sum_list_1814(c):
total = 0
for x in c:
total += x
return total | Returns the sum of elements in the list c |
def contains_digit_1815(x):
for ch in x:
if ch.isdigit():
return True
return False | Checks if the string x contains any digit |
def add_1816(b, w):
return b + w | Returns the sum of b and w |
def contains_digit_1817(h):
for ch in h:
if ch.isdigit():
return True
return False | Checks if the string h contains any digit |
def add_1818(y, t):
return y + t | Returns the sum of y and t |
def reverse_1819(h):
return h[::-1] | Reverses the string h |
def contains_digit_1820(k):
for ch in k:
if ch.isdigit():
return True
return False | Checks if the string k contains any digit |
def sum_list_1821(l):
total = 0
for x in l:
total += x
return total | Returns the sum of elements in the list l |
def reverse_1822(e):
return e[::-1] | Reverses the string e |
def add_1823(w, o):
return w + o | Returns the sum of w and o |
def add_1824(n, y):
return n + y | Returns the sum of n and y |
def add_1825(s, n):
return s + n | Returns the sum of s and n |
def contains_digit_1826(y):
for ch in y:
if ch.isdigit():
return True
return False | Checks if the string y contains any digit |
def contains_digit_1827(a):
for ch in a:
if ch.isdigit():
return True
return False | Checks if the string a contains any digit |
def add_1828(l, g):
return l + g | Returns the sum of l and g |
def sum_list_1829(q):
total = 0
for x in q:
total += x
return total | Returns the sum of elements in the list q |
def contains_digit_1830(z):
for ch in z:
if ch.isdigit():
return True
return False | Checks if the string z contains any digit |
def reverse_1831(y):
return y[::-1] | Reverses the string y |
def sum_list_1832(q):
total = 0
for x in q:
total += x
return total | Returns the sum of elements in the list q |
def reverse_1833(v):
return v[::-1] | Reverses the string v |
def reverse_1834(u):
return u[::-1] | Reverses the string u |
def add_1835(a, b):
return a + b | Returns the sum of a and b |
def reverse_1836(d):
return d[::-1] | Reverses the string d |
def reverse_1837(s):
return s[::-1] | Reverses the string s |
def sum_list_1838(u):
total = 0
for x in u:
total += x
return total | Returns the sum of elements in the list u |
def contains_digit_1839(c):
for ch in c:
if ch.isdigit():
return True
return False | Checks if the string c contains any digit |
def sum_list_1840(c):
total = 0
for x in c:
total += x
return total | Returns the sum of elements in the list c |
def sum_list_1841(c):
total = 0
for x in c:
total += x
return total | Returns the sum of elements in the list c |
def reverse_1842(t):
return t[::-1] | Reverses the string t |
def sum_list_1843(w):
total = 0
for x in w:
total += x
return total | Returns the sum of elements in the list w |
def reverse_1844(j):
return j[::-1] | Reverses the string j |
def is_palindrome_1845(y):
t = y.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string y is a palindrome |
def reverse_1846(d):
return d[::-1] | Reverses the string d |
def sum_list_1847(a):
total = 0
for x in a:
total += x
return total | Returns the sum of elements in the list a |
def contains_digit_1848(u):
for ch in u:
if ch.isdigit():
return True
return False | Checks if the string u contains any digit |
def contains_digit_1849(c):
for ch in c:
if ch.isdigit():
return True
return False | Checks if the string c contains any digit |
def contains_digit_1850(x):
for ch in x:
if ch.isdigit():
return True
return False | Checks if the string x contains any digit |
def contains_digit_1851(a):
for ch in a:
if ch.isdigit():
return True
return False | Checks if the string a contains any digit |
def reverse_1852(e):
return e[::-1] | Reverses the string e |
def is_palindrome_1853(f):
t = f.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string f is a palindrome |
def contains_digit_1854(p):
for ch in p:
if ch.isdigit():
return True
return False | Checks if the string p contains any digit |
def reverse_1855(d):
return d[::-1] | Reverses the string d |
def sum_list_1856(q):
total = 0
for x in q:
total += x
return total | Returns the sum of elements in the list q |
def sum_list_1857(i):
total = 0
for x in i:
total += x
return total | Returns the sum of elements in the list i |
def reverse_1858(i):
return i[::-1] | Reverses the string i |
def sum_list_1859(i):
total = 0
for x in i:
total += x
return total | Returns the sum of elements in the list i |
def add_1860(m, v):
return m + v | Returns the sum of m and v |
def sum_list_1861(p):
total = 0
for x in p:
total += x
return total | Returns the sum of elements in the list p |
def reverse_1862(i):
return i[::-1] | Reverses the string i |
def contains_digit_1863(s):
for ch in s:
if ch.isdigit():
return True
return False | Checks if the string s contains any digit |
def sum_list_1864(p):
total = 0
for x in p:
total += x
return total | Returns the sum of elements in the list p |
def add_1865(l, s):
return l + s | Returns the sum of l and s |
def contains_digit_1866(y):
for ch in y:
if ch.isdigit():
return True
return False | Checks if the string y contains any digit |
def sum_list_1867(p):
total = 0
for x in p:
total += x
return total | Returns the sum of elements in the list p |
def is_palindrome_1868(u):
t = u.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string u is a palindrome |
def contains_digit_1869(k):
for ch in k:
if ch.isdigit():
return True
return False | Checks if the string k contains any digit |
def reverse_1870(c):
return c[::-1] | Reverses the string c |
def sum_list_1871(d):
total = 0
for x in d:
total += x
return total | Returns the sum of elements in the list d |
def contains_digit_1872(d):
for ch in d:
if ch.isdigit():
return True
return False | Checks if the string d contains any digit |
def contains_digit_1873(v):
for ch in v:
if ch.isdigit():
return True
return False | Checks if the string v contains any digit |
def add_1874(j, h):
return j + h | Returns the sum of j and h |
def add_1875(q, j):
return q + j | Returns the sum of q and j |
def reverse_1876(v):
return v[::-1] | Reverses the string v |
def sum_list_1877(z):
total = 0
for x in z:
total += x
return total | Returns the sum of elements in the list z |
def reverse_1878(d):
return d[::-1] | Reverses the string d |
def add_1879(f, p):
return f + p | Returns the sum of f and p |
def contains_digit_1880(l):
for ch in l:
if ch.isdigit():
return True
return False | Checks if the string l contains any digit |
def contains_digit_1881(w):
for ch in w:
if ch.isdigit():
return True
return False | Checks if the string w contains any digit |
def contains_digit_1882(i):
for ch in i:
if ch.isdigit():
return True
return False | Checks if the string i contains any digit |
def is_palindrome_1883(i):
t = i.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string i is a palindrome |
def contains_digit_1884(v):
for ch in v:
if ch.isdigit():
return True
return False | Checks if the string v contains any digit |
def contains_digit_1885(n):
for ch in n:
if ch.isdigit():
return True
return False | Checks if the string n contains any digit |
def sum_list_1886(l):
total = 0
for x in l:
total += x
return total | Returns the sum of elements in the list l |
def sum_list_1887(w):
total = 0
for x in w:
total += x
return total | Returns the sum of elements in the list w |
def sum_list_1888(k):
total = 0
for x in k:
total += x
return total | Returns the sum of elements in the list k |
def contains_digit_1889(g):
for ch in g:
if ch.isdigit():
return True
return False | Checks if the string g contains any digit |
def add_1890(e, s):
return e + s | Returns the sum of e and s |
def is_palindrome_1891(t):
t = t.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string t is a palindrome |
def is_palindrome_1892(l):
t = l.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string l is a palindrome |
def is_palindrome_1893(z):
t = z.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string z is a palindrome |
def add_1894(q, i):
return q + i | Returns the sum of q and i |
def sum_list_1895(g):
total = 0
for x in g:
total += x
return total | Returns the sum of elements in the list g |
def reverse_1896(u):
return u[::-1] | Reverses the string u |
def sum_list_1897(m):
total = 0
for x in m:
total += x
return total | Returns the sum of elements in the list m |
def sum_list_1898(r):
total = 0
for x in r:
total += x
return total | Returns the sum of elements in the list r |
def is_palindrome_1899(z):
t = z.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string z is a palindrome |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.